Thread (3 messages) 3 messages, 3 authors, 2021-03-23

Re: [PATCH 5.12 regression fix] brcmfmac: p2p: Fix recently introduced deadlock issue

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2021-03-13 15:23:45

On Sat, 2021-03-13 at 15:36 +0100, Hans de Goede wrote:
Commit a05829a7222e ("cfg80211: avoid holding the RTNL when calling the
driver") replaced the rtnl_lock parameter passed to various brcmf
functions with just lock, because since that commit it is not just
about the rtnl_lock but also about the wiphy_lock .

During this search/replace the "if (!rtnl_locked)" check in brcmfmac/p2p.c
was accidentally replaced with "if (locked)", dropping the inversion of
the check. This causes the code to now call rtnl_lock() while already
holding the lock, causing a deadlock.

Add back the "!" to the if-condition to fix this.
Ouch, sorry about that, and thanks for the fix!

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help