]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: sanity check for null SSID
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 29 Mar 2012 14:30:41 +0000 (16:30 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Apr 2012 19:20:28 +0000 (15:20 -0400)
commite7af87deaba86f2245a7bf027a59296d8fe400a2
treec56c66967ebb4a33142a54ef94396340656399bf
parent94c227f257f23b95fddcb418438070987c7d8dfc
mac80211: sanity check for null SSID

While associated we should never have empty SSID, but life can be full
of surprises, and is allways better to print a warning than crash.

Before memcpy() in ieee80211_probereq_get() check ssid_len instead of
ssid pointer, sice pointer it always passed by "ssidie + 2" expression
to send probe functions, so practically never can be NULL.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c
net/mac80211/tx.c