Commit c820ad4c authored by James Smart's avatar James Smart Committed by Jens Axboe
Browse files

nvmet_fc: Clear SG list to avoid double frees

Clear SG list to avoid double frees of payload page list
Signed-off-by: default avatarJames Smart <>
Reviewed-by: default avatarJohannes Thumshirn <>
Reviewed-by: default avatarChristoph Hellwig <>
Signed-off-by: default avatarSagi Grimberg <>
Signed-off-by: default avatarJens Axboe <>
parent f77fc87c
......@@ -1624,6 +1624,8 @@ nvmet_fc_free_tgt_pgs(struct nvmet_fc_fcp_iod *fod)
for_each_sg(fod->data_sg, sg, fod->data_sg_cnt, count)
fod->data_sg = NULL;
fod->data_sg_cnt = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment