diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/scsi_debug.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index e83e661b0257..83efec2919b1 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c | |||
@@ -2064,6 +2064,11 @@ static void unmap_region(sector_t lba, unsigned int len) | |||
2064 | scsi_debug_sector_size * | 2064 | scsi_debug_sector_size * |
2065 | scsi_debug_unmap_granularity); | 2065 | scsi_debug_unmap_granularity); |
2066 | } | 2066 | } |
2067 | if (dif_storep) { | ||
2068 | memset(dif_storep + lba, 0xff, | ||
2069 | sizeof(*dif_storep) * | ||
2070 | scsi_debug_unmap_granularity); | ||
2071 | } | ||
2067 | } | 2072 | } |
2068 | lba = map_index_to_lba(index + 1); | 2073 | lba = map_index_to_lba(index + 1); |
2069 | } | 2074 | } |