diff options
| author | Yuho Choi <dbgh9129@gmail.com> | 2026-07-07 14:51:00 -0400 |
|---|---|---|
| committer | Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> | 2026-07-30 07:19:51 +0200 |
| commit | 0d5b9e66591d4e2a4376ac82c8cda889a29ba3ee (patch) | |
| tree | 261dddcbd3dd34a02ec6cfd49a5d7fc8138d7cc8 /include | |
| parent | 5fe63c1bba57492c97cceb34c35e276d3c81e4fe (diff) | |
bus: mhi: host: Fix controller cleanup on EDL sysfs failure
mhi_register_controller() adds the controller device before creating the
optional trigger_edl sysfs file. If sysfs_create_file() fails, the error
path only drops the device reference and leaves the device registered.
Hence, call device_del() in the error path before put_device().
Fixes: 17553ba8e19d ("bus: mhi: host: Add sysfs entry to force device to enter EDL")
Signed-off-by: Yuho Choi <dbgh9129@gmail.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
