summaryrefslogtreecommitdiff
path: root/drivers/sh
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2013-12-14 13:36:25 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-09 20:25:08 (GMT)
commit43d1db887c4642963b60ad9a2663f47812507b41 (patch)
treee8f4dcd559fc2e33a73752ce52b40a9bf7f39b1a /drivers/sh
parent0d1ffc541943dd3133615d8a5b21549b25c58751 (diff)
downloadlinux-fsl-qoriq-43d1db887c4642963b60ad9a2663f47812507b41.tar.xz
can: peak_usb: fix mem leak in pcan_usb_pro_init()
commit 20fb4eb96fb0350d28fc4d7cbfd5506711079592 upstream. 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(). Reported-by: Stephane Grosjean <s.grosjean@peak-system.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/sh')
0 files changed, 0 insertions, 0 deletions