iwlagn: check beacon frame size
authorJohannes Berg <johannes.berg@intel.com>
Thu, 7 Oct 2010 11:00:33 +0000 (04:00 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 14 Oct 2010 16:47:35 +0000 (09:47 -0700)
commit40bbfd4c1b336b8841bef9933b6e09252ace56b8
tree113aeddb212dba5d3db7b82d1d68f26a9e24f6e7
parent657e11a47dede79cae1d2f72084f6f7303aec725
iwlagn: check beacon frame size

When the beacon_skb is NULL, we might still
attempt to use it in this code path (if we
ever get here) -- make the code a bit more
defensive and check the return value of
iwl_fill_beacon_frame() against zero.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn.c