diff options
author | Kashyap Desai | 2023-06-09 04:01:47 -0700 |
---|---|---|
committer | Leon Romanovsky | 2023-06-12 10:10:17 +0300 |
commit | 691eb7c6110fe04e38bf0f60d713482508b3d199 (patch) | |
tree | 6142a4119acb59510b908022008b5717fcfcf57a /fs/exec.c | |
parent | 354f5bd985af9515190828bc642ebdf59acea121 (diff) |
RDMA/bnxt_re: handle command completions after driver detect a timedout
If calling context detect command timeout, associated memory stored on
stack will not be valid. If firmware complete the same command later,
this causes incorrect memory access by driver.
Added is_waiter_alive to handle delayed completion by firmware.
is_waiter_alive is set and reset under command queue lock.
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://lore.kernel.org/r/1686308514-11996-11-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'fs/exec.c')
0 files changed, 0 insertions, 0 deletions