diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2017-01-11 00:22:25 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-11 16:04:01 +0100 |
commit | 24c63bbc18e25d5d8439422aa5fd2d66390b88eb (patch) | |
tree | 7706deaa26f79bb4c4878399cb93448613bba7b2 /lib | |
parent | net: phy: marvell: fix Marvell 88E1512 used in SGMII mode (diff) | |
download | linux-24c63bbc18e25d5d8439422aa5fd2d66390b88eb.tar.xz linux-24c63bbc18e25d5d8439422aa5fd2d66390b88eb.zip |
net: vrf: do not allow table id 0
Frank reported that vrf devices can be created with a table id of 0.
This breaks many of the run time table id checks and should not be
allowed. Detect this condition at create time and fail with EINVAL.
Fixes: 193125dbd8eb ("net: Introduce VRF device driver")
Reported-by: Frank Kellermann <frank.kellermann@atos.net>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions