]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/bnxt_re: Fix to drop reference to the mmap entry in case of error
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Sat, 4 Jan 2025 06:15:19 +0000 (11:45 +0530)
committerLeon Romanovsky <leon@kernel.org>
Sun, 5 Jan 2025 11:51:49 +0000 (06:51 -0500)
commitc84f0f4f49d81645f49c3269fdcc3b84ce61e795
treef25ec4c871b6365af7bb7374e9a3289372d80fd8
parent220043b06fded9909bdf62e3355396eff0bb8a52
RDMA/bnxt_re: Fix to drop reference to the mmap entry in case of error

In the error handling path of bnxt_re_mmap(), driver should invoke
rdma_user_mmap_entry_put() to free the reference of mmap entry in case
the error happens after rdma_user_mmap_entry_get was called.

Fixes: ea2224857882 ("RDMA/bnxt_re: Update alloc_page uapi for pacing")
Reviewed-by: Saravanan Vajravel <saravanan.vajravel@broadcom.com>
Reviewed-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/20250104061519.2540178-1-kalesh-anakkur.purayil@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/ib_verbs.c