mac80211: improve error checking if WEP fails to init
commit088c87262bbc39a01ebcd70817d35616785908b1
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Jul 2010 20:16:17 +0000 (15 16:16 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Jul 2010 18:03:42 +0000 (16 14:03 -0400)
tree3ebb99b80645eaffa2ad04c9f11708f6694d24a1
parent48d5548fc5e5ad79ca98a287b67f403834929739
mac80211: improve error checking if WEP fails to init

Do this by poisoning the values of wep_tx_tfm and wep_rx_tfm if either
crypto allocation fails.

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