Files
linux-stable-mirror/include/linux
Gal Pressman 21be225b70 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:22:43 +02:00
..
2024-01-25 14:37:54 -08:00
2025-06-27 11:04:09 +01:00
2024-07-05 09:12:55 +02:00
2023-12-20 15:44:30 +01:00
2024-06-21 14:53:19 +02:00
2024-06-21 14:53:46 +02:00
2024-10-17 15:07:44 +02:00
2023-10-25 11:54:20 +02:00
2025-07-17 18:27:44 +02:00
2024-06-21 14:53:28 +02:00
2025-03-13 12:47:21 +01:00
2023-06-21 15:45:38 +02:00
2024-04-13 12:58:31 +02:00
2024-01-25 14:37:40 -08:00
2025-06-04 14:37:08 +02:00
2025-08-28 16:22:31 +02:00
2025-04-10 14:30:53 +02:00
2023-11-28 16:54:53 +00:00
2023-10-25 11:54:13 +02:00
2023-10-25 11:54:13 +02:00
2025-02-01 18:22:32 +01:00
2025-06-27 11:04:09 +01:00
2024-07-05 09:12:55 +02:00
2025-06-04 14:37:09 +02:00
2023-05-17 11:48:09 +02:00
2024-02-23 08:41:51 +01:00
2024-10-17 15:07:57 +02:00
2025-08-28 16:22:37 +02:00