mac80211: fix sta_info_destroy(NULL)
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 31 Mar 2008 17:23:00 +0000 (19:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 1 Apr 2008 21:14:09 +0000 (17:14 -0400)
commit97bff8ecf4e4e26749a67dcfbb7565d8a0f4acb4
tree1aecc15d8fa842af2b26edd1a68a713ae0008d57
parent9dd6aed05b8859265cd79f1e47e4f844bbe1548b
mac80211: fix sta_info_destroy(NULL)

sta_info_destroy(NULL) should be valid, but currently isn't because
the argument is dereferenced before the NULL check. There are no
users that currently pass in NULL, i.e. all check before calling the
function, but I want to change that.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/sta_info.c