Commit 87ce0e2
committed
net: Pass NULL to skb_network_protocol() when we don't care about vlan depth
jira VULN-66198
cve-pre CVE-2022-49872
commit-author Miaohe Lin <linmiaohe@huawei.com>
commit 2f63113
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>
(cherry picked from commit 2f63113)
Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>1 parent c05d38b commit 87ce0e2
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3879 | 3879 | | |
3880 | 3880 | | |
3881 | 3881 | | |
3882 | | - | |
3883 | 3882 | | |
3884 | 3883 | | |
3885 | 3884 | | |
| |||
3901 | 3900 | | |
3902 | 3901 | | |
3903 | 3902 | | |
3904 | | - | |
| 3903 | + | |
3905 | 3904 | | |
3906 | 3905 | | |
3907 | 3906 | | |
| |||
0 commit comments