diff options
| author | Kefeng Wang <[email protected]> | 2019-05-31 23:23:24 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-06-10 18:44:22 +0200 |
| commit | b0c35cb59f7b640f455fa426074fea155296a37c (patch) | |
| tree | 81f301852d8a6e79e33af1f6bfe93311b7a342d5 /tools/perf/scripts/python/stat-cpi.py | |
| parent | 2f0f2441b4a10948e2ec042b48fef13680387f7c (diff) | |
misc: mic: scif: fix potential double free of scif_dev
_scif_init() free scif_dev in the free_sdev erro path,
but _scif_exit will free it again when module exit, it
cause BUG_ON issue,
kernel BUG at mm/slub.c:3944!
invalid opcode: 0000 [#1] SMP KASAN PTI
Set scif_dev to NULL in scif_destroy_scifdev() to fix it.
Cc: Sudeep Dutt <[email protected]>
Cc: Ashutosh Dixit <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Kefeng Wang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions