]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: ps883x: Fix missing mutex_unlock()
authorKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Thu, 23 Oct 2025 08:13:42 +0000 (10:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Oct 2025 08:42:27 +0000 (10:42 +0200)
commitd227a8b3e715963b7c034971c3b467d5430a2cab
tree5316fb45df4743edfad0723573fbc338c0470078
parent93741bd104ce07a790519ecee3a331ee7cf61ae3
usb: typec: ps883x: Fix missing mutex_unlock()

There's a missing mutex_unlock() in the error-return path inside
ps883x_sw_set(). Simply delete that return since there's another one
3 lines below.

Fixes: f83cb615cb7a ("usb: typec: ps883x: Cache register settings, not Type-C mode")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202510231023.aJ09O6pk-lkp@intel.com/
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20251023-topic-ps883x_fixup-v1-1-2afb5b85f09b@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/ps883x.c