Staging: wlags49_h2: potential NULL dereference
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 14 May 2012 20:56:46 +0000 (23:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2012 22:43:44 +0000 (15:43 -0700)
commitbed861ba2a020c267a987c63aca2705d460f1350
tree9368e6a208c3d27cfd5438b5e80f5c04adb5b3e0
parent95f18c0cb2d23f6051fd4f40cc5d0836fdeda08f
Staging: wlags49_h2: potential NULL dereference

wl_device_dealloc() dereferences the "dev" paramter, so let's move it
under the check for NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlags49_h2/wl_cs.c