staging: wlan-ng: Fix dereference before NULL check
authorEmil Goode <emilgoode@gmail.com>
Tue, 18 Sep 2012 16:04:07 +0000 (18:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2012 08:28:14 +0000 (09:28 +0100)
commit5d5d7c3b938d0c365e65180f2b9d6ffad4973cee
tree4aff2e3142e00fbab9ba1fc097b40da604d8d3bf
parent3d9562a6ed5389cd92deafa3e357e197b1ff136d
staging: wlan-ng: Fix dereference before NULL check

Smatch is warning about a dereference before we check for NULL.
This patch moves the dereference to after the NULL check.

Smatch warning:
drivers/staging/wlan-ng/cfg80211.c:345 prism2_scan() warn:
variable dereferenced before check 'request' (see line 332)

Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/cfg80211.c