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:Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by:
Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/Z_44tOtmml89wQcM@stanley.mountain Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit ab5281d2) Bug: 437846539 Signed-off-by:
Greg Kroah-Hartman <gregkh@google.com>
Loading