mirror of
https://github.com/torvalds/linux
synced 2024-10-22 19:25:51 +00:00
98a1a0c7a3
One of the error handling paths forgets to unlock dp->lock on the error
exit path leading to a potential lock-up. Also the return path for a
successful call to the function configuration_store can return an
uninitialized error return code if dp->alt->active is false, so ensure
ret is zeroed on the successful exit path to avoid garbage being returned.
Detected by CoverityScan, CID#1471597 ("Unitialized scalar variable")
Fixes:
|
||
---|---|---|
.. | ||
altmodes | ||
fusb302 | ||
mux | ||
ucsi | ||
bus.c | ||
bus.h | ||
class.c | ||
Kconfig | ||
Makefile | ||
mux.c | ||
tcpci.c | ||
tcpci.h | ||
tcpci_rt1711h.c | ||
tcpm.c | ||
tps6598x.c | ||
typec_wcove.c |