aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/chrome/Makefile
diff options
context:
space:
mode:
authorWen Yang <wenyang@linux.alibaba.com>2019-11-30 21:08:42 +0800
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2019-12-02 12:14:42 +0100
commit856a0a6e2d09d31fd8f00cc1fc6645196a509d56 (patch)
tree575abfd3e15af1a79f88cdb4f73b4ca9c4e5cc01 /drivers/platform/chrome/Makefile
parentplatform/chrome: cros_ec: Add Kconfig default for cros-ec-sensorhub (diff)
downloadlinux-dev-856a0a6e2d09d31fd8f00cc1fc6645196a509d56.tar.xz
linux-dev-856a0a6e2d09d31fd8f00cc1fc6645196a509d56.zip
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: 1210d1e6bad1 ("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>
Diffstat (limited to 'drivers/platform/chrome/Makefile')
0 files changed, 0 insertions, 0 deletions