projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf59592
)
cfg80211: ocb: Fix null pointer deref if join_ocb is unimplemented
author
Ola Olsson
<ola1olsson@gmail.com>
Mon, 9 Nov 2015 21:02:09 +0000
(22:02 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Fri, 4 Dec 2015 13:43:32 +0000
(14:43 +0100)
Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/ocb.c
patch
|
blob
|
history
diff --git
a/net/wireless/ocb.c
b/net/wireless/ocb.c
index
c00d4a7
..
e64dbf1
100644
(file)
--- a/
net/wireless/ocb.c
+++ b/
net/wireless/ocb.c
@@
-29,6
+29,9
@@
int __cfg80211_join_ocb(struct cfg80211_registered_device *rdev,
if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_OCB)
return -EOPNOTSUPP;
+ if (!rdev->ops->join_ocb)
+ return -EOPNOTSUPP;
+
if (WARN_ON(!setup->chandef.chan))
return -EINVAL;