Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 1210d1e ("platform/chrome: wilco_ec: Add telemetry char device interface") Signed-off-by: Wen Yang <[email protected]> Cc: Benson Leung <[email protected]> Cc: Enric Balletbo i Serra <[email protected]> Cc: Nick Crews <[email protected]> Cc: [email protected] Signed-off-by: Enric Balletbo i Serra <[email protected]>
- Loading branch information