summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_netlink.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-06 20:03:46 +0200
committerTakashi Iwai <tiwai@suse.de>2017-06-06 20:03:46 +0200
commitdd8038ec56c18680ddddf948247f53d427054f45 (patch)
tree9552d8cd5578bf82e028dd4205b799736f877476 /net/bridge/br_netlink.c
parentALSA: hda/realtek - Reorder ALC269 ASUS quirk entries (diff)
parentMerge remote-tracking branch 'asoc/fix/rt286' into asoc-linus (diff)
downloadlinux-dd8038ec56c18680ddddf948247f53d427054f45.tar.xz
linux-dd8038ec56c18680ddddf948247f53d427054f45.zip
Merge tag 'asoc-fix-v4.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v4.12 This is the usual collection of device specific fixes, all accumilated since the merge window, plus one fix from Takashi for a nasty use after free bug that bit some things with deferred probe and an update to the maintainer address for the former Wolfson parts.
Diffstat (limited to 'net/bridge/br_netlink.c')
-rw-r--r--net/bridge/br_netlink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index c5ce7745b230..574f78824d8a 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -835,6 +835,13 @@ static int br_validate(struct nlattr *tb[], struct nlattr *data[])
return -EPROTONOSUPPORT;
}
}
+
+ if (data[IFLA_BR_VLAN_DEFAULT_PVID]) {
+ __u16 defpvid = nla_get_u16(data[IFLA_BR_VLAN_DEFAULT_PVID]);
+
+ if (defpvid >= VLAN_VID_MASK)
+ return -EINVAL;
+ }
#endif
return 0;