Jiri Pirko bb9bb6bfd1 devlink: don't work with possible NULL pointer in devlink_param_unregister()
There is a WARN_ON checking the param_item for being NULL when the param
is not inserted in the list. That indicates a driver BUG. Instead of
continuing to work with NULL pointer with its consequences, return.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-01-27 12:32:02 +00:00
..
2023-01-12 17:02:20 -06:00
2022-12-13 15:47:48 -08:00
2022-12-17 14:06:53 -06:00
2023-01-13 20:44:20 -08:00
2022-12-13 15:47:48 -08:00
2023-01-26 10:52:18 +01:00
2023-01-26 10:52:18 +01:00
2023-01-25 22:39:56 -08:00
2022-12-13 15:47:48 -08:00
2022-12-13 15:47:48 -08:00
2023-01-17 13:36:25 +02:00
2023-01-25 22:39:56 -08:00
2022-08-22 14:26:30 +01:00