diff options
| author | Ethan Tidmore <ethantidmore06@gmail.com> | 2026-03-13 23:57:30 -0500 |
|---|---|---|
| committer | Leon Romanovsky <leonro@nvidia.com> | 2026-03-17 15:01:05 -0400 |
| commit | 0f2055db7b630559870afb40fc84490816ab8ec5 (patch) | |
| tree | cf3e4506f5c43e0b2d400858336bdbb0f8500009 /include/mtd/git@git.tavy.me:linux.git | |
| parent | f28599f3969d1d928276772f1306872344c967f0 (diff) | |
RDMA/efa: Fix possible deadlock
In the error path for efa_com_alloc_comp_ctx() the semaphore assigned to
&aq->avail_cmds is not released.
Detected by Smatch:
drivers/infiniband/hw/efa/efa_com.c:662 efa_com_cmd_exec() warn:
inconsistent returns '&aq->avail_cmds'
Add release for &aq->avail_cmds in efa_com_alloc_comp_ctx() error path.
Fixes: ef3b06742c8a2 ("RDMA/efa: Fix use of completion ctx after free")
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260314045730.1143862-1-ethantidmore06@gmail.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/mtd/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
