commit | f1472cb09f11ddb41d4be84f0650835cb65a9073 | [log] [tgz] |
---|---|---|
author | Wenwen Wang <wenwen@cs.uga.edu> | Wed Aug 14 13:56:43 2019 -0500 |
committer | David S. Miller <davem@davemloft.net> | Sun Aug 18 13:03:21 2019 -0700 |
tree | e29a80bcb173a25a5f45ca91e8ab88b656de0a0a | |
parent | 1eca92eef18719027d394bf1a2d276f43e7cf886 [diff] |
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>