projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pata_marvell: Cable and reset fixes
[linux-2.6-block.git]
/
net
/
netlink
/
attr.c
diff --git
a/net/netlink/attr.c
b/net/netlink/attr.c
index 004139557e09507f01969754cc779002e1fcfbc9..df5f820a4c325be1547b778031b1f9bfcd159ca7 100644
(file)
--- a/
net/netlink/attr.c
+++ b/
net/netlink/attr.c
@@
-67,6
+67,11
@@
static int validate_nla(struct nlattr *nla, int maxtype,
}
break;
+ case NLA_BINARY:
+ if (pt->len && attrlen > pt->len)
+ return -ERANGE;
+ break;
+
default:
if (pt->len)
minlen = pt->len;