linux/net/devlink
Jiri Pirko 7d8c7bc99a devlink: fix port new reply cmd type
[ Upstream commit 78a2f5e6c1 ]

Due to a c&p error, port new reply fills-up cmd with wrong value,
any other existing port command replies and notifications.

Fix it by filling cmd with value DEVLINK_CMD_PORT_NEW.

Skimmed through devlink userspace implementations, none of them cares
about this cmd value.

Reported-by: Chenyuan Yang <chenyuan0y@gmail.com>
Closes: https://lore.kernel.org/all/ZfZcDxGV3tSy4qsV@cy-server/
Fixes: cd76dcd68d ("devlink: Support add and delete devlink port")
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://lore.kernel.org/r/20240318091908.2736542-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:20:11 -04:00
..
core.c devlink: fix possible use-after-free and memory leaks in devlink_init() 2024-03-01 13:35:07 +01:00
dev.c
devl_internal.h
dpipe.c
health.c
linecard.c
Makefile
netlink_gen.c
netlink_gen.h
netlink.c
param.c
port.c devlink: fix port new reply cmd type 2024-03-26 18:20:11 -04:00
rate.c
region.c
resource.c
sb.c
trap.c