mac80211: validate SIOCSIWPOWER arguments better
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 6 Jan 2009 17:12:35 +0000 (18:12 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 20:59:55 +0000 (15:59 -0500)
commite9aeabaeb9a0bece50100dc74bbd720a68cb8f5c
tree4e3a5ba61805a5169ecede23af67240a6121c4f3
parent4797938c5dfa22af30fd16679192972f878419a1
mac80211: validate SIOCSIWPOWER arguments better

Don't accept any arguments we don't handle, and return error codes
instead of using an uninitialised stack value.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/wext.c