[PATCH] hostap: Fix ap_add_sta() return value verification
commit54b85f489bdfafc9306dfcc21e0d2687c34c3b34
authorAdrian Bunk <bunk@stusta.de>
Mon, 20 Mar 2006 03:21:45 +0000 (19 19:21 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 23 Mar 2006 21:16:57 +0000 (23 16:16 -0500)
treec141cbcf5fbad9f7e68fdf12567871c049736b34
parent971d1e69229f3dfc6dd233b8f4b82df2c35eedd8
[PATCH] hostap: Fix ap_add_sta() return value verification

The Coverity checker (CID: 273) spotted this inconsequent NULL checking
(unconditionally dereferencing directly after checking for NULL
isn't a good idea). Return immediately to avoid this.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/hostap/hostap_ap.c