diff options
| author | Gal Pressman <[email protected]> | 2025-06-16 13:26:25 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-06-18 01:06:38 +0000 |
| commit | 60a8b1a5d0824afda869f18dc0ecfe72f8dfda42 (patch) | |
| tree | e1940a4202b1e3d3f09f038823bc08f2f847b119 /net/ipv4/tcp_output.c | |
| parent | net: vlan: Make is_vlan_dev() a stub when VLAN is not configured (diff) | |
| download | kernel-60a8b1a5d0824afda869f18dc0ecfe72f8dfda42.tar.gz kernel-60a8b1a5d0824afda869f18dc0ecfe72f8dfda42.zip | |
net: vlan: Replace BUG() with WARN_ON_ONCE() in vlan_dev_* stubs
When CONFIG_VLAN_8021Q=n, a set of stub helpers are used, three of these
helpers use BUG() unconditionally.
This code should not be reached, as callers of these functions should
always check for is_vlan_dev() first, but the usage of BUG() is not
recommended, replace it with WARN_ON() instead.
Reviewed-by: Alex Lazar <[email protected]>
Reviewed-by: Dragos Tatulea <[email protected]>
Signed-off-by: Gal Pressman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
