diff options
author | Takashi Iwai <tiwai@suse.de> | 2022-09-22 13:47:09 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-09-22 13:47:09 +0200 |
commit | cbdac8bc2cbf91b42a92869dc938b809054d4fae (patch) | |
tree | 06118f3dc9ea6dab868ebc89aad68e19cd4c7800 /net/ipv6/seg6.c | |
parent | 79764ec772bc1346441ae1c4b1f3bd1991d634e8 (diff) | |
parent | 0a0342ede303fc420f3a388e1ae82da3ae8ff6bd (diff) |
Merge tag 'asoc-fix-v6.0-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v6.0
A few device specific fixes, nothing too large, and a new device
ID for a Dell laptop.
Diffstat (limited to 'net/ipv6/seg6.c')
-rw-r--r-- | net/ipv6/seg6.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/ipv6/seg6.c b/net/ipv6/seg6.c index 73aaabf0e966..0b0e34ddc64e 100644 --- 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) |