]> git.baikalelectronics.ru Git - kernel.git/commit
regulatory: don't allocate too much memory
authorJohannes Berg <johannes.berg@intel.com>
Tue, 4 Dec 2012 11:49:16 +0000 (12:49 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:19 +0000 (13:01 +0100)
commita5d7ba833691a6f61ec857ed007e5f92b96594b6
tree6a1e7e837f3d26ea40f1f73ac72ea979c9e85665
parent698963ba7e15feee49cf47ac2181cf143e7af99b
regulatory: don't allocate too much memory

There's no need to allocate one reg rule more
than will be used, reduce the allocations. The
allocation in nl80211 already doesn't allocate
too much space.

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