git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nl802154: fix Oops in ieee802154_nl_get_dev
[safe/jmp/linux-2.6]
/
net
/
ieee802154
/
netlink.c
diff --git
a/net/ieee802154/netlink.c
b/net/ieee802154/netlink.c
index
105ad10
..
332b947
100644
(file)
--- a/
net/ieee802154/netlink.c
+++ b/
net/ieee802154/netlink.c
@@
-276,6
+276,9
@@
static struct net_device *ieee802154_nl_get_dev(struct genl_info *info)
else
return NULL;
+ if (!dev)
+ return NULL;
+
if (dev->type != ARPHRD_IEEE802154) {
dev_put(dev);
return NULL;