|
@@ -2055,7 +2055,7 @@ static void unmap_region(sector_t lba, unsigned int len)
|
|
block = lba + alignment;
|
|
block = lba + alignment;
|
|
rem = do_div(block, granularity);
|
|
rem = do_div(block, granularity);
|
|
|
|
|
|
- if (rem == 0 && lba + granularity <= end && block < map_size) {
|
|
|
|
|
|
+ if (rem == 0 && lba + granularity < end && block < map_size) {
|
|
clear_bit(block, map_storep);
|
|
clear_bit(block, map_storep);
|
|
if (scsi_debug_lbprz)
|
|
if (scsi_debug_lbprz)
|
|
memset(fake_storep +
|
|
memset(fake_storep +
|