--- x/drivers/scsi/scsi_lib.c +++ y/drivers/scsi/scsi_lib.c @@ -1037,6 +1037,7 @@ blk_status_t scsi_alloc_sgtables(struct /* * If sg table allocation fails, requeue request later. */ + cmd->sdb.table.sgl = NULL; if (unlikely(sg_alloc_table_chained(&cmd->sdb.table, nr_segs, cmd->sdb.table.sgl, SCSI_INLINE_SG_CNT))) return BLK_STS_RESOURCE;