Thread (13 messages) 13 messages, 3 authors, 2011-08-30

Re: [PATCH 1/2] cfg80211: hold reg_mutex when updating regulatory

From: Luis R. Rodriguez <hidden>
Date: 2011-08-30 22:24:59

On Tue, Aug 30, 2011 at 2:38 PM, Sven Neumann [off-list ref] wrote:
The function wiphy_update_regulatory() uses the static variable
last_request and thus needs to be called with reg_mutex held.
This is the case for all users in reg.c, but the function was
exported for use by wiphy_register(), from where it is called
without the lock being held.

Fix this by making wiphy_update_regulatory() private and introducing
regulatory_update() as a wrapper that acquires and holds the lock.

Signed-off-by: Sven Neumann <redacted>
Cc: John W. Linville <redacted>
Cc: Luis R. Rodriguez <redacted>
Cc: Daniel Mack <daniel@zonque.org>
Cc: linux-wireless@vger.kernel.org
Acked-by:  Luis R. Rodriguez <redacted>

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