History log of /drivers/net/can/usb/peak_usb/pcan_usb_pro.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a49bcabedc18319f673319d5e71b5751e3978179 11-Apr-2012 Jesper Juhl <jj@chaosbits.net> can: usb: PCAN-USB Pro: fix mem leaks in pcan_usb_pro_init() on error paths

If either call to pcan_usb_pro_send_req() in
drivers/net/can/usb/peak_usb/pcan_usb_pro.c::pcan_usb_pro_init()
fails, we'll leak the memory we allocated to 'usb_if' with kzalloc()
when the 'usb_if' variable goes out of scope without having been
assigned to anything as we 'return err;'.
Fix this by adding appropriate kfree(usb_if) calls to the error paths.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
/drivers/net/can/usb/peak_usb/pcan_usb_pro.c
d8a199355f8f8a0797c00d98788d7282c9ea38bd 02-Mar-2012 Stephane Grosjean <s.grosjean@peak-system.com> can: usb: PEAK-System Technik PCAN-USB Pro specific part

This patch adds the specific part which handles the PCAN-USB Pro adapter
from PEAK-System Technik (http://www.peak-system.com). The PCAN-USB Pro
adapter is a dual-channel USB 2.0 adapter compliant with CAN specifications

Tested-by: Oliver Hartkopp <socketcan@hartkopp.net>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
/drivers/net/can/usb/peak_usb/pcan_usb_pro.c