projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs: fix race between quota disable and quota assign ioctls
[platform/kernel/linux-rpi.git]
/
net
/
ipv6
/
seg6.c
diff --git
a/net/ipv6/seg6.c
b/net/ipv6/seg6.c
index
fa6b64c
..
0c7c6fc
100644
(file)
--- a/
net/ipv6/seg6.c
+++ b/
net/ipv6/seg6.c
@@
-191,6
+191,11
@@
static int seg6_genl_sethmac(struct sk_buff *skb, struct genl_info *info)
goto out_unlock;
}
+ if (slen > nla_len(info->attrs[SEG6_ATTR_SECRET])) {
+ err = -EINVAL;
+ goto out_unlock;
+ }
+
if (hinfo) {
err = seg6_hmac_info_del(net, hmackeyid);
if (err)