]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ec32a3492e98f00dc0b4ce0982989beedc39b2b
tree1aecc15d8fa842af2b26edd1a68a713ae0008d57
parent790b0863a84ada399b6805eaa5970c0233b6ea0b
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