aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mana/main.c
diff options
context:
space:
mode:
authorKees Bakker <[email protected]>2025-02-21 19:39:03 +0000
committerLeon Romanovsky <[email protected]>2025-02-23 11:27:52 +0000
commitbe35a3127d60964b338da95c7bfaaf4a01b330d4 (patch)
treefe42008aa4285b6c555ef70f393bf2d3fb0d9e07 /drivers/infiniband/hw/mana/main.c
parentRDMA/rxe: Add support for the traditional Atomic operations with ODP (diff)
downloadkernel-be35a3127d60964b338da95c7bfaaf4a01b330d4.tar.gz
kernel-be35a3127d60964b338da95c7bfaaf4a01b330d4.zip
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Long Li <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mana/main.c')
-rw-r--r--drivers/infiniband/hw/mana/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mana/main.c b/drivers/infiniband/hw/mana/main.c
index e3230fe31fbc..730f958aa2a8 100644
--- a/drivers/infiniband/hw/mana/main.c
+++ b/drivers/infiniband/hw/mana/main.c
@@ -384,7 +384,7 @@ static int mana_ib_gd_create_dma_region(struct mana_ib_dev *dev, struct ib_umem
unsigned int tail = 0;
u64 *page_addr_list;
void *request_buf;
- int err;
+ int err = 0;
gc = mdev_to_gc(dev);
hwc = gc->hwc.driver_data;