From: Luis R. Rodriguez Date: Wed, 13 May 2009 21:04:41 +0000 (-0400) Subject: cfg80211: fix in nl80211_set_reg() X-Git-Tag: v2.6.31-rc1~330^2~313^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61405e97788b1bc4e7c5be5b4ec04a73fc11bac2;p=pandora-kernel.git cfg80211: fix in nl80211_set_reg() There is a race on access to last_request and its alpha2 through reg_is_valid_request() and us possibly processing first another regulatory request on another CPU. We avoid this improbably race by locking with the cfg80211_mutex as we should have done in the first place. While at it add the assert on locking on reg_is_valid_request(). Cc: stable@kernel.org Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- Reading git-diff-tree failed