]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4451008cc49bf20823b9c2c6d8c1780e58e7b023
treeaa485987c383ac5c2843e1f3d7b3eb3a628f111b
parenta10b71b7ee044fe016712862af623cf5cd714d68
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