mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
i3c: fix missing detach if failed to retrieve i3c dev
If we failed to retrieve the i3c dev, we should detach the i3c dev I.E i3c_master_detach_i3c_dev(). Signed-off-by: Jisheng Zhang <[email protected]> Signed-off-by: Boris Brezillon <[email protected]>
This commit is contained in:
parent
49a57857ae
commit
093c61b6a0
1 changed files with 1 additions and 1 deletions
|
|
@ -1828,7 +1828,7 @@ int i3c_master_add_i3c_dev_locked(struct i3c_master_controller *master,
|
|||
|
||||
ret = i3c_master_retrieve_dev_info(newdev);
|
||||
if (ret)
|
||||
goto err_free_dev;
|
||||
goto err_detach_dev;
|
||||
|
||||
olddev = i3c_master_search_i3c_dev_duplicate(newdev);
|
||||
if (olddev) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue