linux/drivers/net/can/usb/peak_usb
Marc Kleine-Budde 20fb4eb96f can: peak_usb: fix mem leak in pcan_usb_pro_init()
This patch fixes a memory leak in pcan_usb_pro_init(). In patch

    f14e224 net: can: peak_usb: Do not do dma on the stack

the struct pcan_usb_pro_fwinfo *fi and struct pcan_usb_pro_blinfo *bi were
converted from stack to dynamic allocation va kmalloc(). However the
corresponding kfree() was not introduced.

This patch adds the missing kfree().

Cc: linux-stable <stable@vger.kernel.org> # v3.10
Reported-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2013-12-17 11:19:33 +01:00
..
Makefile can: usb: PEAK-System Technik PCAN-USB Pro specific part 2012-03-03 17:40:58 +01:00
pcan_usb.c can: pcan_usb: fix wrong memcpy() bytes length 2013-08-11 21:51:49 -07:00
pcan_usb_core.c can: pcan_usb_core: fix memory leak on failure paths in peak_usb_start() 2013-09-20 20:58:21 +02:00
pcan_usb_core.h can: pcan_usb_core: remove obsolete variable open_time 2012-11-29 14:34:06 +01:00
pcan_usb_pro.c can: peak_usb: fix mem leak in pcan_usb_pro_init() 2013-12-17 11:19:33 +01:00
pcan_usb_pro.h net: can: peak_usb: Do not do dma on the stack 2013-06-03 14:05:32 +02:00