]> www.infradead.org Git - nvme.git/commit
RDMA/mana_ib: Ensure variable err is initialized
authorKees Bakker <kees@ijzerbout.nl>
Fri, 21 Feb 2025 19:39:03 +0000 (20:39 +0100)
committerLeon Romanovsky <leon@kernel.org>
Sun, 23 Feb 2025 11:27:52 +0000 (06:27 -0500)
commitbe35a3127d60964b338da95c7bfaaf4a01b330d4
treefe42008aa4285b6c555ef70f393bf2d3fb0d9e07
parentb55e9d29ec6a268c7d077d6796fd52f98e150a33
RDMA/mana_ib: Ensure variable err is initialized

In the function mana_ib_gd_create_dma_region if there are no dma blocks
to process the variable `err` remains uninitialized.

Fixes: 0266a177631d ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter")
Signed-off-by: Kees Bakker <kees@ijzerbout.nl>
Link: https://patch.msgid.link/20250221195833.7516C16290A@bout3.ijzerbout.nl
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mana/main.c