Merge tag 'for-3.7' of git://openrisc.net/jonas/linux
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / scsi / scsi_debug.c
index 57fbd5a3d4e2dae3b29ec3337c3493eb4cf815c3..5cda11c07c689a55b7df5080ac580389963d5d78 100644 (file)
@@ -2055,7 +2055,7 @@ static void unmap_region(sector_t lba, unsigned int len)
                block = lba + alignment;
                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);
                        if (scsi_debug_lbprz)
                                memset(fake_storep +