summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorWenwen Wang2019-08-14 20:56:43 +0200
committerDavid S. Miller2019-08-18 22:03:21 +0200
commitf1472cb09f11ddb41d4be84f0650835cb65a9073 (patch)
treee29a80bcb173a25a5f45ca91e8ab88b656de0a0a /fs
parentcx82310_eth: fix a memory leak bug (diff)
downloadkernel-qcow2-linux-f1472cb09f11ddb41d4be84f0650835cb65a9073.tar.gz
kernel-qcow2-linux-f1472cb09f11ddb41d4be84f0650835cb65a9073.tar.xz
kernel-qcow2-linux-f1472cb09f11ddb41d4be84f0650835cb65a9073.zip
net: kalmia: fix memory leaks
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions