Commit 88257494 authored by Chunguang Xu's avatar Chunguang Xu Committed by Greg Kroah-Hartman
Browse files

nvme: avoid double free special payload



commit e5d574ab upstream.

If a discard request needs to be retried, and that retry may fail before
a new special payload is added, a double free will result. Clear the
RQF_SPECIAL_LOAD when the request is cleaned.

Signed-off-by: default avatarChunguang Xu <chunguang.xu@shopee.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarMax Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
[Minor context change fixed]
Signed-off-by: default avatarCliff Liu <donghua.liu@windriver.com>
Signed-off-by: default avatarHe Zhe <Zhe.He@windriver.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0862d960
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment