]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix register_hw error path
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 19 Aug 2009 17:45:50 +0000 (19:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Aug 2009 15:36:07 +0000 (11:36 -0400)
commit797d011aad8b51b700c4cbc633299eeb18bf536d
tree82bcec21fef9364e1fb27cb4091c7950eadcf7ad
parenta441cf42270e3edb36fad80ba24043c382f79278
mac80211: fix register_hw error path

"cfg80211: fix alignment problem in scan request"
introduced a bug into the error path, because now
we allocate the entire scan request and not just
the channel list (the channel list is allocated
together with the scan request) -- on errors we
thus also need to free the entire scan request.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c