FROMLIST: usb: typec: fix up incorrectly backported "usb: typec: tcpm:...
FROMLIST: usb: typec: fix up incorrectly backported "usb: typec: tcpm: unregister existing source caps before re-registration" In commit b16abab1 ("usb: typec: tcpm: unregister existing source caps before re-registration"), quilt, and git, applied the diff to the incorrect function, which would cause bad problems if exercised in a device with these capabilities. Fix this all up (including the follow-up fix in commit 04c05d50 ("usb: typec: tcpm: fix use-after-free case in tcpm_register_source_caps") to be in the correct function. Fixes: 04c05d50 ("usb: typec: tcpm: fix use-after-free case in tcpm_register_source_caps") Fixes: b16abab1 ("usb: typec: tcpm: unregister existing source caps before re-registration") Reported-by:Charles Yo <charlesyo@google.com> Cc: Kyle Tso <kyletso@google.com> Cc: Amit Sunil Dhamne <amitsd@google.com> Cc: Ondrej Jirman <megi@xff.cz> Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com> Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/linux-usb/2024083008-granddad-unmoving-828c@gregkh/ Bug: 363121994 [ note, only 1/2 of the upstream commit is needed here due to half already being present due to manual UPSTREAM changes made to the tree. - gregkh] Signed-off-by:
Greg Kroah-Hartman <gregkh@google.com> Change-Id: I33b07fcb8d1e64e7f0424b9a7b7d056aa9e44b2f
Loading
Please sign in to comment