Commit 027926f
net:CXGB4: fix leak if sk_buff is not used
[ Upstream commit 52bfcdd ]
An sk_buff is allocated to send a flow control message, but it's not
sent in all cases: in case the state is not appropiate to send it or if
it can't be enqueued.
In the first of these 2 cases, the sk_buff was discarded but not freed,
producing a memory leak.
Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 9284b70 commit 027926f
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2559 | 2559 | | |
2560 | 2560 | | |
2561 | 2561 | | |
2562 | | - | |
| 2562 | + | |
2563 | 2563 | | |
2564 | 2564 | | |
2565 | 2565 | | |
2566 | 2566 | | |
2567 | | - | |
| 2567 | + | |
2568 | 2568 | | |
2569 | 2569 | | |
2570 | 2570 | | |
| |||
2600 | 2600 | | |
2601 | 2601 | | |
2602 | 2602 | | |
2603 | | - | |
2604 | | - | |
2605 | | - | |
2606 | | - | |
| 2603 | + | |
| 2604 | + | |
2607 | 2605 | | |
2608 | 2606 | | |
2609 | 2607 | | |
2610 | 2608 | | |
2611 | 2609 | | |
2612 | 2610 | | |
2613 | | - | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
2614 | 2616 | | |
2615 | 2617 | | |
2616 | 2618 | | |
| |||
0 commit comments