From: Arend van Spriel Date: Mon, 19 Nov 2012 11:01:05 +0000 (+0100) Subject: mac80211: check add_chanctx callback before use in ieee80211_reconfig X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~17^2^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0dea9c73a16caac6b46886eb08f51dd82894ca4;p=pandora-kernel.git mac80211: check add_chanctx callback before use in ieee80211_reconfig During testing our mac80211 driver a fatal error occurred which was signalled to mac80211. Upon performing the reconfiguration of the device a WARN_ON was triggered. This warning checked the return value of drv_add_chanctx(). However, this returns -EOPNOTSUPP when the driver does not provide the callback. As the callback is optional better check it is defined before calling drv_add_chanctx(). Signed-off-by: Arend van Spriel Signed-off-by: Johannes Berg --- Reading git-diff-tree failed