aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/scsi_debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
index 05abf4e153a3..5c321409fff3 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -3413,9 +3413,10 @@ static int __init scsi_debug_init(void)
3413 clamp(scsi_debug_unmap_granularity, 1U, 0xffffffffU); 3413 clamp(scsi_debug_unmap_granularity, 1U, 0xffffffffU);
3414 3414
3415 if (scsi_debug_unmap_alignment && 3415 if (scsi_debug_unmap_alignment &&
3416 scsi_debug_unmap_granularity < scsi_debug_unmap_alignment) { 3416 scsi_debug_unmap_granularity <=
3417 scsi_debug_unmap_alignment) {
3417 printk(KERN_ERR 3418 printk(KERN_ERR
3418 "%s: ERR: unmap_granularity < unmap_alignment\n", 3419 "%s: ERR: unmap_granularity <= unmap_alignment\n",
3419 __func__); 3420 __func__);
3420 return -EINVAL; 3421 return -EINVAL;
3421 } 3422 }