projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git]
/
net
/
batman-adv
/
netlink.c
diff --git
a/net/batman-adv/netlink.c
b/net/batman-adv/netlink.c
index
6f08fd1
..
7e052d6
100644
(file)
--- a/
net/batman-adv/netlink.c
+++ b/
net/batman-adv/netlink.c
@@
-164,7
+164,7
@@
batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype)
{
struct nlattr *attr = nlmsg_find_attr(nlh, GENL_HDRLEN, attrtype);
- return
attr
? nla_get_u32(attr) : 0;
+ return
(attr && nla_len(attr) == sizeof(u32))
? nla_get_u32(attr) : 0;
}
/**