From: Adrian Bunk Date: Mon, 20 Mar 2006 03:21:45 +0000 (-0800) Subject: [PATCH] hostap: Fix ap_add_sta() return value verification X-Git-Tag: v2.6.17-rc1~994^2^2~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54b85f489bdfafc9306dfcc21e0d2687c34c3b34;p=pandora-kernel.git [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 Signed-off-by: Jouni Malinen Signed-off-by: John W. Linville --- Reading git-diff-tree failed