]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: protect fools returning NULL in add_virtual_intf
authorRafał Miłecki <zajec5@gmail.com>
Fri, 14 Nov 2014 17:43:28 +0000 (18:43 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Nov 2014 17:50:34 +0000 (18:50 +0100)
commit477902966c437237a35ddccf03f4b35c8c14bc41
tree6d4d167a3b672ad05a814d899bbbde8a89240e94
parent6095d0c3a1ab1ac54b37da7d33e516433bf4f0c2
cfg80211: protect fools returning NULL in add_virtual_intf

Callback add_virtual_intf is supposed to return ERR_PTR and trying to
return NULL results in some "Unable to handle kernel paging request",
etc. As it may be complicated to debug & trace, let's catch it (WARN).

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c