]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cw1200: Revert "Fix locking in error paths"
authorBart Van Assche <bvanassche@acm.org>
Thu, 30 Apr 2026 17:44:15 +0000 (10:44 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 4 May 2026 07:08:24 +0000 (09:08 +0200)
commit65493f27a6008bf84bd11bd41c5e1ea6b0bf3c3d
tree6f240c315581ac87beafa0b25b591aea9f9f9e64
parent0cfff13c94cb5fa818bb374945ff280e08dc1bb9
wifi: cw1200: Revert "Fix locking in error paths"

Revert commit d98c24617a83 ("wifi: cw1200: Fix locking in error paths")
because it introduces a locking bug instead of fixing a locking bug.
cw1200_wow_resume() unlocks priv->conf_mutex. Hence, adding
mutex_unlock(&priv->conf_mutex) just after cw1200_wow_resume() is wrong.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Closes: https://lore.kernel.org/all/408661f69f263266b028713e1412ba36d457e63d.camel@decadent.org.uk/
Fixes: d98c24617a83 ("wifi: cw1200: Fix locking in error paths")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260430174418.1845431-1-bvanassche@acm.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/st/cw1200/pm.c