diff options
author | Maximilain Schneider <[email protected]> | 2016-02-23 01:17:28 +0000 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2016-02-26 08:36:33 +0100 |
commit | e9a2d81b1761093386a0bb8a4f51642ac785ef63 (patch) | |
tree | fc98a26a18092acc4d2086fe0116accd10aa85a5 /tools/perf/scripts/python/sched-migration.py | |
parent | 4c0b6eaf373a5323f03a3a20c42fc435715b073d (diff) |
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 <[email protected]>
Cc: linux-stable <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions