1
0
Fork 0
alistair23-linux/drivers/platform/chrome/wilco_ec
Wen Yang 022321aa79 platform/chrome: wilco_ec: fix use after free issue
[ Upstream commit 856a0a6e2d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-26 10:01:08 +01:00
..
Kconfig chrome platform changes for v5.3 2019-07-11 18:45:29 -07:00
Makefile platform/chrome: wilco_ec: Add telemetry char device interface 2019-06-05 10:14:50 +02:00
core.c platform/chrome: wilco_ec: Add telemetry char device interface 2019-06-05 10:14:50 +02:00
debugfs.c platform/chrome: wilco_ec: Add telemetry char device interface 2019-06-05 10:14:50 +02:00
event.c platform/chrome: wilco_ec: Add circular buffer as event queue 2019-06-25 12:33:05 +02: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 version sysfs entries 2019-06-05 17:28:42 +02:00
telemetry.c platform/chrome: wilco_ec: fix use after free issue 2020-01-26 10:01:08 +01:00