Linux/linux f1472cbdrivers/net/usb kalmia.c

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 at cs.uga.edu>
Signed-off-by: David S. Miller <davem at davemloft.net>
DeltaFile
+3-3drivers/net/usb/kalmia.c
+3-31 files

UnifiedSplitRaw