mac80211: make sure hw_key exists before checking its flags
authorArik Nemtsov <arik@wizery.com>
Thu, 10 Nov 2011 07:35:13 +0000 (09:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 11 Nov 2011 17:32:51 +0000 (12:32 -0500)
commite0830f71e7b8c2c58031c9692384819943162e9b
tree7b7ad69c6f4a2166a463eda9af20ff6e3c2cb989
parentfdacbcda7f21ba684cb4426daed67e23003d8311
mac80211: make sure hw_key exists before checking its flags

Fixes a bug introduced in:

commit 077a9154898b374f20555adc3f620cccd02581d6
Author: Arik Nemtsov <arik@wizery.com>
Date:   Sun Oct 23 08:21:41 2011 +0200

Reported-by: Arend van Spriel <arend@broadcom.com>
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/wpa.c