diff options
author | Takashi Iwai <[email protected]> | 2022-08-23 08:54:55 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-08-23 09:28:11 +0200 |
commit | 5f73aa2cf8bef4a39baa1591c3144ede4788826e (patch) | |
tree | 8060890b3083cf8ac2e8b8a11b974aee0672eb1f /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | e41a88f38d87f730647bb14df9211d32241d1176 (diff) |
Revert "usb: typec: ucsi: add a common function ucsi_unregister_connectors()"
The recent commit 87d0e2f41b8c ("usb: typec: ucsi: add a common
function ucsi_unregister_connectors()") introduced a regression that
caused NULL dereference at reading the power supply sysfs. It's a
stale sysfs entry that should have been removed but remains with NULL
ops. The commit changed the error handling to skip the entries after
a NULL con->wq, and this leaves the power device unreleased.
For addressing the regression, the straight revert is applied here.
Further code improvements can be done from the scratch again.
Link: https://bugzilla.suse.com/show_bug.cgi?id=1202386
Link: https://lore.kernel.org/r/[email protected]
Fixes: 87d0e2f41b8c ("usb: typec: ucsi: add a common function ucsi_unregister_connectors()")
Cc: <[email protected]>
Acked-by: Heikki Krogerus <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions