Commit 3f619823 authored by Dan Carpenter's avatar Dan Carpenter Committed by Giuliano Procida
Browse files

UPSTREAM: usb: typec: class: Unlocked on error in typec_register_partner()



commit 429a98ab upstream.

We recently added some locking to this function but this error path
was accidentally missed.  Unlock before returning.

Fixes: ec27386d ("usb: typec: class: Fix NULL pointer access")
Cc: stable <stable@kernel.org>
Change-Id: Ib825d3968055ac20c739f239b7ae453057f8bf29
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/Z_44tOtmml89wQcM@stanley.mountain


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ab5281d2)
Bug: 437846539
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent eac7385f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment