]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit921697b9ee97bd8f0339f51e149cc1272b0c2513
treea1c619e776cdea71943429dffbbaa87b0a7c7999
parentb2e361163700b70e72b076acd539214bdd50caab
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