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)
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

Simple merge