Staging: vt6655-6: potential NULL dereference in hostap_disable_hostapd()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Nov 2013 07:55:43 +0000 (10:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 17:14:29 +0000 (09:14 -0800)
commitcb4855b49deb1acce27706ad9509d63c4fe8e988
treef726e8a47b628780f8243757b36562d7f0bb0578
parent3de00ee4ce6a61ce7b72fd50a8af47957a7b53a8
Staging: vt6655-6: potential NULL dereference in hostap_disable_hostapd()

We fixed this to use free_netdev() instead of kfree() but unfortunately
free_netdev() doesn't accept NULL pointers.  Smatch complains about
this, it's not something I discovered through testing.

Fixes: 3030d40b5036 ('staging: vt6655: use free_netdev instead of kfree')
Fixes: 0a438d5b381e ('staging: vt6656: use free_netdev instead of kfree')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/hostap.c
drivers/staging/vt6656/hostap.c