diff options
Diffstat (limited to 'drivers/scsi/ch.c')
-rw-r--r-- | drivers/scsi/ch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ch.c b/drivers/scsi/ch.c index 4799d4391203..769b35f8b39f 100644 --- a/drivers/scsi/ch.c +++ b/drivers/scsi/ch.c | |||
@@ -352,7 +352,7 @@ ch_readconfig(scsi_changer *ch) | |||
352 | } | 352 | } |
353 | 353 | ||
354 | /* look up the devices of the data transfer elements */ | 354 | /* look up the devices of the data transfer elements */ |
355 | ch->dt = kmalloc(ch->counts[CHET_DT]*sizeof(struct scsi_device), | 355 | ch->dt = kcalloc(ch->counts[CHET_DT], sizeof(*ch->dt), |
356 | GFP_KERNEL); | 356 | GFP_KERNEL); |
357 | 357 | ||
358 | if (!ch->dt) { | 358 | if (!ch->dt) { |