linux/drivers/net/can/usb
Maximilain Schneider e9a2d81b17 can: gs_usb: fixed disconnect bug by removing erroneous use of kfree()
gs_destroy_candev() erroneously calls kfree() on a struct gs_can *, which is
allocated through alloc_candev() and should instead be freed using
free_candev() alone.

The inappropriate use of kfree() causes the kernel to hang when
gs_destroy_candev() is called.

Only the struct gs_usb * which is allocated through kzalloc() should be freed
using kfree() when the device is disconnected.

Signed-off-by: Maximilian Schneider <max@schneidersoft.net>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2016-02-26 08:36:33 +01:00
..
peak_usb can: pcan_usb: don't provide CAN FD bittimings by non-FD adapters 2015-08-25 08:50:00 +02:00
ems_usb.c can: ems_usb: Fix possible tx overflow 2016-02-21 15:09:12 +01:00
esd_usb2.c can: remove obsolete assignment for CAN protocol error type 2015-11-23 09:37:38 +01:00
gs_usb.c can: gs_usb: fixed disconnect bug by removing erroneous use of kfree() 2016-02-26 08:36:33 +01:00
Kconfig can: peak_usb: add support for PEAK new CANFD USB adapters 2015-01-28 14:47:06 +01:00
kvaser_usb.c can: fix assignment of error location in CAN error messages 2015-11-23 09:37:34 +01:00
Makefile net: can: use kbuild magic to inherit debug settings 2014-08-18 01:03:38 +02:00
usb_8dev.c can: remove obsolete assignment for CAN protocol error type 2015-11-23 09:37:38 +01:00