OSDN Git Service

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)
commit82f20856304319d5a931846e0269eb911d52a905
tree6a1e7e837f3d26ea40f1f73ac72ea979c9e85665
parent8a57fff0c178febbe28669a0ef68a8e3460a7589
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