summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorWenwen Wang <wenwen@cs.uga.edu>2019-08-14 13:56:43 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-10 10:29:47 +0100
commit1b25f01d604ed86d379420f038c91555faef0afc (patch)
treee4203edd7ef97fe25c79d9ce6d4029b6b8561f37 /scripts/gdb/linux/lists.py
parent2d28afe7a79edf0f2afd1005d9c2a83fab1a1ab6 (diff)
net: kalmia: fix memory leaks
[ Upstream commit f1472cb09f11ddb41d4be84f0650835cb65a9073 ] In kalmia_init_and_get_ethernet_addr(), 'usb_buf' is allocated through kmalloc(). In the following execution, if the 'status' returned by kalmia_send_init_packet() is not 0, 'usb_buf' is not deallocated, leading to memory leaks. To fix this issue, add the 'out' label to free 'usb_buf'. Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions