nl80211: Check that function pointer != NULL before using it
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 20 Mar 2009 15:57:36 +0000 (17:57 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 20 Mar 2009 20:01:57 +0000 (16:01 -0400)
commitf3f9258678b081c3ef2f036aef450cd2053ef419
treea1c619e776cdea71943429dffbbaa87b0a7c7999
parent170ebf85160dd128e1c4206cc197cce7d1424705
nl80211: Check that function pointer != NULL before using it

NL80211_CMD_GET_MESH_PARAMS and NL80211_CMD_SET_MESH_PARAMS handlers
did not verify whether a function pointer is NULL (not supported by
the driver) before trying to call the function. The former nl80211
command is available for unprivileged users, too, so this can
potentially allow normal users to kill networking (or worse..) if
mac80211 is built without CONFIG_MAC80211_MESH=y.

Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c