]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:18 +0000 (14:39 +0200)
commit7d25febb0e033e4c09bb4026378d35104f612f59
treea06fd45d73d14cc5d7317e75705d80cf89fcc42f
parent088a200ebf465a9699f6fd854a691159a9af9e56
RDMA/mana_ib: Ensure variable err is initialized

[ Upstream commit be35a3127d60964b338da95c7bfaaf4a01b330d4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/mana/main.c