summaryrefslogtreecommitdiff
path: root/drivers/android/binder/allocation.rs
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-07-09 20:32:39 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-10 15:56:54 +0200
commit2c5659a7064e7c4c0c51eb9356bcf6726a85773b (patch)
tree6958a9cd936f273a3530e50d649d28c898cf4ffc /drivers/android/binder/allocation.rs
parente2467aabbfe14a4d6d4d40b58153ca3354606d9f (diff)
downloadlinux-next-2c5659a7064e7c4c0c51eb9356bcf6726a85773b.tar.gz
linux-next-2c5659a7064e7c4c0c51eb9356bcf6726a85773b.zip
usb: typec: ucsi: gaokun: unwind notifier on UCSI register failure
gaokun_ucsi_register_worker() registers the EC notifier before calling ucsi_register(). If ucsi_register() fails, the worker currently only logs the error and leaves the notifier registered. Later EC events can then call into an unpublished UCSI instance. The remove path also unconditionally unregisters both the EC notifier and the UCSI device even if the delayed worker failed before both publication steps completed. Unregister the notifier immediately when ucsi_register() fails, and track only the fully published state. The remove path then tears down the pair only if both publication steps completed. Fixes: 00327d7f2c8c ("usb: typec: ucsi: add Huawei Matebook E Go ucsi driver") Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Pengyu Luo <mitltlatltl@gmail.com> Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Link: https://patch.msgid.link/20260709123239.62930-1-pengpeng@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android/binder/allocation.rs')
0 files changed, 0 insertions, 0 deletions