summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/fsl_dce/tests/performance_simple/dce_perf_simple.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/fsl_dce/tests/performance_simple/dce_perf_simple.c b/drivers/staging/fsl_dce/tests/performance_simple/dce_perf_simple.c
index d6a2cce..d91c42c 100644
--- a/drivers/staging/fsl_dce/tests/performance_simple/dce_perf_simple.c
+++ b/drivers/staging/fsl_dce/tests/performance_simple/dce_perf_simple.c
@@ -561,6 +561,11 @@ static int validate_module_params(void)
return -EINVAL;
}
+ if (block_size == 0) {
+ pr_err("Invalide block_size value of 0\n");
+ return -EINVAL;
+ }
+
return 0;
}