android_kernel_oneplus_msm8998/drivers/net/can/usb
Maximilain Schneider 16517aa05d can: gs_usb: fixed disconnect bug by removing erroneous use of kfree()
commit e9a2d81b1761093386a0bb8a4f51642ac785ef63 upstream.

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>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-16 08:42:59 -07: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-03-03 15:07:10 -08: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-03-16 08:42:59 -07: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