cfg80211: fix a crash in dev lookup on dump commands
authorFelix Fietkau <nbd@openwrt.org>
Sun, 31 Oct 2010 14:31:54 +0000 (15:31 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Nov 2010 21:53:47 +0000 (16:53 -0500)
commit3cc25e510dfc36dc62ee0aa87344b36ed7c1742a
treeaa485987c383ac5c2843e1f3d7b3eb3a628f111b
parent8df86db9060ddd123d172c7adb6b2b71f31e77cd
cfg80211: fix a crash in dev lookup on dump commands

IS_ERR and PTR_ERR were called with the wrong pointer, leading to a
crash when cfg80211_get_dev_from_ifindex fails.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c