Parent: 0f849abb1b090257370225a0d6bfa4b2d4871ca5
Author: Yun-Hao Chung <howardchung@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-07-20 18:49:04
Tree: 7e96e6948a783d8cd69c532c2f7fcc6b83731a45
core: fix a possible crash when removing devices In probe_service, if the service already exists in device->services, it returns the service. This might cause dev_probe and device_probe_profile to add a duplicate service into device->services. When removing the device, a double-free error might occur. This patch changes the logic of probe_service so that the same service will not be added to a device.
Diffstat
| M | src/device.c | | | 5 | ++++- |
1 files changed, 4 insertions(+), 1 deletions(-)