]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: pass the last_request to __set_regdom()
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 5 Nov 2013 17:18:13 +0000 (09:18 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 19:51:28 +0000 (20:51 +0100)
commit0f8a4ed8da68a68ca1310bceb04c3053f2ad881d
tree838bc7a9ae5d8eab4af33894e3ceb28c239c01a9
parent404d9ea4b43afc344dd7c061c33a3c68cc5ee6db
cfg80211: pass the last_request to __set_regdom()

last_request is RCU protected, since we're getting it
on set_regdom() we might as well pass it to ensure the
same request is being processed, otherwise there is a
small race it could have changed. This makes processing
of the request atomic.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c