]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix wdev tracing crash
authorJohannes Berg <johannes.berg@intel.com>
Tue, 19 Mar 2013 19:26:57 +0000 (20:26 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 Mar 2013 21:21:31 +0000 (22:21 +0100)
commitc24f8f70c1c8c5d486099525a80faaeee1c2984d
tree710a8ef03b2814d4c02be804ff273cf18e7e802a
parent9ed2ae105c6fda4c54d4f40a164bb0c3ef398ad3
cfg80211: fix wdev tracing crash

Arend reported a crash in tracing if the driver returns an
ERR_PTR() value from the add_virtual_intf() callback. This
is due to the tracing then still attempting to dereference
the "pointer", fix this by using IS_ERR_OR_NULL().

Reported-by: Arend van Spriel <arend@broadcom.com>
Tested-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/trace.h