diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2020-09-28 04:31:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-28 09:51:39 +0200 |
commit | 0675c285ea65540cccae64c87dfc7a00c7ede03a (patch) | |
tree | ec56052d7d43b43433755deb33b662d72451d896 /net/8021q | |
parent | Merge branch 'bnxt_en-Update-for-net-next' (diff) | |
download | linux-0675c285ea65540cccae64c87dfc7a00c7ede03a.tar.xz linux-0675c285ea65540cccae64c87dfc7a00c7ede03a.zip |
net: vlan: Fixed signedness in vlan_group_prealloc_vid()
After commit d0186842ec5f ("net: vlan: Avoid using BUG() in
vlan_proto_idx()"), vlan_proto_idx() was changed to return a signed
integer, however one of its called: vlan_group_prealloc_vid() was still
using an unsigned integer for its return value, fix that.
Fixes: d0186842ec5f ("net: vlan: Avoid using BUG() in vlan_proto_idx()")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q')
-rw-r--r-- | net/8021q/vlan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 6c08de1116c1..f292e0267bb9 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c @@ -51,8 +51,9 @@ static int vlan_group_prealloc_vid(struct vlan_group *vg, __be16 vlan_proto, u16 vlan_id) { struct net_device **array; - unsigned int pidx, vidx; + unsigned int vidx; unsigned int size; + int pidx; ASSERT_RTNL(); |