OpenCloudOS-Kernel/drivers/platform/chrome/wilco_ec
Wen Yang 856a0a6e2d platform/chrome: wilco_ec: fix use after free issue
This is caused by dereferencing 'dev_data' after put_device() in
the telem_device_remove() function.
This patch just moves the put_device() down a bit to avoid this
issue.

Fixes: 1210d1e6ba ("platform/chrome: wilco_ec: Add telemetry char device interface")
Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
Cc: Benson Leung <bleung@chromium.org>
Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Cc: Nick Crews <ncrews@chromium.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
2019-12-02 12:14:42 +01:00
..
Kconfig platform/chrome: wilco_ec: Add keyboard backlight LED support 2019-11-19 18:12:19 +01:00
Makefile platform/chrome: wilco_ec: Add keyboard backlight LED support 2019-11-19 18:12:19 +01:00
core.c platform/chrome: wilco_ec: Add keyboard backlight LED support 2019-11-19 18:12:19 +01:00
debugfs.c platform/chrome: wilco_ec: Add debugfs test_event file 2019-10-01 18:07:28 +02:00
event.c platform/chrome: wilco_ec: Add circular buffer as event queue 2019-06-25 12:33:05 +02:00
keyboard_leds.c platform/chrome: wilco_ec: Add keyboard backlight LED support 2019-11-19 18:12:19 +01:00
mailbox.c platform/chrome: wilco_ec: Remove 256 byte transfers 2019-05-20 10:18:10 +02:00
properties.c platform/chrome: wilco_ec: Add property helper library 2019-05-20 10:18:09 +02:00
sysfs.c platform/chrome: wilco_ec: Add Dell's USB PowerShare Policy control 2019-10-11 12:12:04 +02:00
telemetry.c platform/chrome: wilco_ec: fix use after free issue 2019-12-02 12:14:42 +01:00