summaryrefslogtreecommitdiff
path: root/drivers/s390/char/sclp_sd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/char/sclp_sd.c')
-rw-r--r--drivers/s390/char/sclp_sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/sclp_sd.c b/drivers/s390/char/sclp_sd.c
index 99f41db5123b..1e244f78f192 100644
--- a/drivers/s390/char/sclp_sd.c
+++ b/drivers/s390/char/sclp_sd.c
@@ -300,7 +300,7 @@ static int sclp_sd_store_data(struct sclp_sd_data *result, u8 di)
goto out_result;
/* Allocate memory */
- data = vzalloc((size_t) dsize * PAGE_SIZE);
+ data = vzalloc(array_size((size_t)dsize, PAGE_SIZE));
if (!data) {
rc = -ENOMEM;
goto out;