From: Florian Fainelli Date: Mon, 28 Sep 2020 02:31:50 +0000 (-0700) Subject: net: vlan: Fixed signedness in vlan_group_prealloc_vid() X-Git-Tag: v5.10.7~1401^2~131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0675c285ea65540cccae64c87dfc7a00c7ede03a;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 6c08de1..f292e02 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();