diff options
author | Íñigo Huguet <ihuguet@redhat.com> | 2021-05-05 14:54:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-05 21:46:00 +0200 |
commit | 52bfcdd87e83d9e69d22da5f26b1512ffc81deed (patch) | |
tree | e240196573dbd0c9a39e43fd19652ca9a328bd93 /lib/nlattr.c | |
parent | Fix spelling error from "eleminate" to "eliminate" (diff) | |
download | linux-52bfcdd87e83d9e69d22da5f26b1512ffc81deed.tar.xz linux-52bfcdd87e83d9e69d22da5f26b1512ffc81deed.zip |
net:CXGB4: fix leak if sk_buff is not used
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>
Diffstat (limited to 'lib/nlattr.c')
0 files changed, 0 insertions, 0 deletions