diff options
-rw-r--r-- | drivers/scsi/hpsa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 5828bcb82964..959eeb202d92 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -2310,6 +2310,7 @@ static int hpsa_ioctl32_passthru(struct scsi_device *dev, int cmd, void *arg) | |||
2310 | int err; | 2310 | int err; |
2311 | u32 cp; | 2311 | u32 cp; |
2312 | 2312 | ||
2313 | memset(&arg64, 0, sizeof(arg64)); | ||
2313 | err = 0; | 2314 | err = 0; |
2314 | err |= copy_from_user(&arg64.LUN_info, &arg32->LUN_info, | 2315 | err |= copy_from_user(&arg64.LUN_info, &arg32->LUN_info, |
2315 | sizeof(arg64.LUN_info)); | 2316 | sizeof(arg64.LUN_info)); |
@@ -2346,6 +2347,7 @@ static int hpsa_ioctl32_big_passthru(struct scsi_device *dev, | |||
2346 | int err; | 2347 | int err; |
2347 | u32 cp; | 2348 | u32 cp; |
2348 | 2349 | ||
2350 | memset(&arg64, 0, sizeof(arg64)); | ||
2349 | err = 0; | 2351 | err = 0; |
2350 | err |= copy_from_user(&arg64.LUN_info, &arg32->LUN_info, | 2352 | err |= copy_from_user(&arg64.LUN_info, &arg32->LUN_info, |
2351 | sizeof(arg64.LUN_info)); | 2353 | sizeof(arg64.LUN_info)); |