mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 14:14:24 +08:00
net: vlan: Fixed signedness in vlan_group_prealloc_vid()
After commitd0186842ec
("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:d0186842ec
("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>
This commit is contained in:
parent
4cd4b3619a
commit
0675c285ea
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user