diff options
author | 2016-02-23 01:17:28 +0000 | |
---|---|---|
committer | 2016-02-26 08:36:33 +0100 | |
commit | e9a2d81b1761093386a0bb8a4f51642ac785ef63 (patch) | |
tree | fc98a26a18092acc4d2086fe0116accd10aa85a5 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | net: thunderx: Fix for Qset error due to CQ full (diff) | |
download | linux-dev-e9a2d81b1761093386a0bb8a4f51642ac785ef63.tar.xz linux-dev-e9a2d81b1761093386a0bb8a4f51642ac785ef63.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions