mac80211: Fix TDLS support validation in add_station handler
authorJouni Malinen <j@w1.fi>
Sun, 23 Oct 2011 19:36:04 +0000 (22:36 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 2 Nov 2011 19:23:12 +0000 (15:23 -0400)
commite3a4cc2f073739c9c9c2e97efc774703061f034a
tree4ad2345dcf7837ee9ea98327d657d7f1efc8a50b
parent94d55d62bd757611f07a9122e5e07ce929b8d38d
mac80211: Fix TDLS support validation in add_station handler

We need to verify whether the command is successful before allocating
the station entry to avoid extra processing. This also fixes a memory
leak on the error path.

Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c