]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: Pass NULL to skb_network_protocol() when we don't care about vlan depth
authorMiaohe Lin <linmiaohe@huawei.com>
Sat, 1 Aug 2020 09:36:05 +0000 (17:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 22:38:31 +0000 (15:38 -0700)
commit2f631133c40cd8e311ae393518c3e651e476ab66
tree3adc7329dd5c1d2b3f6f21c77dc092d6bb693e6c
parentc15fc199b3757496325c4855662fad89bd1efdad
net: Pass NULL to skb_network_protocol() when we don't care about vlan depth

When we don't care about vlan depth, we could pass NULL instead of the
address of a unused local variable to skb_network_protocol() as a param.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c