diff options
-rw-r--r-- | drivers/scsi/aacraid/linit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index 364232858f71..8d41064406cc 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c | |||
@@ -571,12 +571,12 @@ static long aac_compat_do_ioctl(struct aac_dev *dev, unsigned cmd, unsigned long | |||
571 | 571 | ||
572 | f = compat_alloc_user_space(sizeof(*f)); | 572 | f = compat_alloc_user_space(sizeof(*f)); |
573 | ret = 0; | 573 | ret = 0; |
574 | if (clear_user(f, sizeof(*f) != sizeof(*f))) | 574 | if (clear_user(f, sizeof(*f)) != sizeof(*f)) |
575 | ret = -EFAULT; | 575 | ret = -EFAULT; |
576 | if (copy_in_user(f, (void __user *)arg, sizeof(struct fib_ioctl) - sizeof(u32))) | 576 | if (copy_in_user(f, (void __user *)arg, sizeof(struct fib_ioctl) - sizeof(u32))) |
577 | ret = -EFAULT; | 577 | ret = -EFAULT; |
578 | if (!ret) | 578 | if (!ret) |
579 | ret = aac_do_ioctl(dev, cmd, (void __user *)arg); | 579 | ret = aac_do_ioctl(dev, cmd, f); |
580 | break; | 580 | break; |
581 | } | 581 | } |
582 | 582 | ||