qed: Don't ignore devlink allocation failures
authorLeon Romanovsky <leonro@nvidia.com>
Thu, 23 Sep 2021 18:12:53 +0000 (21:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:25 +0000 (19:16 +0100)
commit9fcd75ee91592bc61f19adedc26c5a40ae88352e
tree14a7f274f87dbf932117ef4bf6fd386a59777468
parentaf484a1cde06f46b575a49743fda89faf4f33f64
qed: Don't ignore devlink allocation failures

[ Upstream commit e6a54d6f221301347aaf9d83bb1f23129325c1c5 ]

devlink is a software interface that doesn't depend on any hardware
capabilities. The failure in SW means memory issues, wrong parameters,
programmer error e.t.c.

Like any other such interface in the kernel, the returned status of
devlink APIs should be checked and propagated further and not ignored.

Fixes: 755f982bb1ff ("qed/qede: make devlink survive recovery")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/qlogic/qede/qede_main.c
drivers/scsi/qedf/qedf_main.c