linux/net/devlink
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
..
core.c devlink: remove reporters_lock 2023-01-19 19:08:37 -08:00
devl_internal.h netlink: fix spelling mistake in dump size assert 2023-01-24 16:29:11 -08:00
leftover.c devlink: don't work with possible NULL pointer in devlink_param_unregister() 2023-01-27 12:32:02 +00:00
Makefile devlink: split out netlink code 2023-01-05 22:13:39 -08:00
netlink.c devlink: remove devlink_dump_for_each_instance_get() helper 2023-01-19 19:08:38 -08:00