]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix memory leak in register_hw() error path
authorJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jan 2014 15:02:34 +0000 (16:02 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jan 2014 15:02:34 +0000 (16:02 +0100)
commit131e5632ec3bb7b84b28ec9a34be042a4f24f571
treed9b5ad22bc3f98c4bd02ab9be0a5de577f79f043
parentf91f5deb64dc1d3fd60c2c4acbe2d5009642d0e3
mac80211: fix memory leak in register_hw() error path

Move the internal scan request allocation below the last
sanity check in ieee80211_register_hw() to avoid leaking
memory if the sanity check actually triggers.

Reported-by: ZHAO Gang <gamerh2o@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c