Files
linux-stable-mirror/include/linux
Gal Pressman 452de57979 net: vlan: Replace BUG() with WARN_ON_ONCE() in vlan_dev_* stubs
[ Upstream commit 60a8b1a5d0 ]

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 <alazar@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Link: https://patch.msgid.link/20250616132626.1749331-3-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-28 16:24:22 +02:00
..
2023-07-23 13:46:54 +02:00
2024-01-25 14:52:51 -08:00
2024-07-05 09:14:50 +02:00
2023-12-20 15:17:37 +01:00
2024-12-14 19:51:34 +01:00
2024-04-10 16:19:07 +02:00
2025-07-10 15:57:42 +02:00
2024-04-10 16:18:55 +02:00
2023-08-26 14:23:39 +02:00
2024-01-25 14:52:33 -08:00
2025-06-04 14:38:07 +02:00
2025-08-28 16:24:06 +02:00
2024-06-16 13:39:27 +02:00
2025-04-10 14:31:55 +02:00
2023-11-28 16:56:21 +00:00
2023-10-19 23:05:33 +02:00
2023-10-19 23:05:33 +02:00
2025-02-01 18:23:59 +01:00
2025-04-10 14:31:49 +02:00
2023-12-13 18:36:35 +01:00
2025-06-04 14:38:08 +02:00
2024-10-17 15:11:06 +02:00
2025-08-28 16:24:13 +02:00