diff options
| author | Maximilain Schneider <max@schneidersoft.net> | 2016-02-23 01:17:28 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-16 08:42:59 -0700 |
| commit | 16517aa05d49d235451e357e2ef5b38c0584904b (patch) | |
| tree | dc421a3d4bcca287e4682935cc5aa4c7615aa6a2 /scripts/gcc-wrapper.py | |
| parent | bfed1f518daa78346fb3f118367212ad352b2f07 (diff) | |
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>
Diffstat (limited to 'scripts/gcc-wrapper.py')
0 files changed, 0 insertions, 0 deletions
