]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
RDMA/bng_re: Fix silent failure in HWRM version query
authorKamal Heib <kheib@redhat.com>
Tue, 3 Mar 2026 04:36:45 +0000 (23:36 -0500)
committerLeon Romanovsky <leon@kernel.org>
Thu, 5 Mar 2026 09:34:31 +0000 (04:34 -0500)
commitc242e92c9da456d361d1d4482fb6e93ee95bd8cf
tree51b0d53ee67271ff6d1fbd01185eed3b82da713c
parenta08aaf3968aec5d05cd32c801b8cc0c61da69c41
RDMA/bng_re: Fix silent failure in HWRM version query

If the firmware version query fails, the driver currently ignores the
error and continues initializing. This leaves the device in a bad state.

Fix this by making bng_re_query_hwrm_version() return the error code and
update the driver to check for this error and stop the setup process
safely if it happens.

Fixes: 745065770c2d ("RDMA/bng_re: Register and get the resources from bnge driver")
Signed-off-by: Kamal Heib <kheib@redhat.com>
Link: https://patch.msgid.link/20260303043645.425724-1-kheib@redhat.com
Reviewed-by: Siva Reddy Kallam <siva.kallam@broadcom.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bng_re/bng_dev.c