aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid
diff options
context:
space:
mode:
authorMark Haverkamp <markh@osdl.org>2006-03-27 12:44:33 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-04-13 11:13:21 -0400
commit3d2f98a66571d1aa8d66aab1a97bad6ffff61b24 (patch)
tree0f63ca5836a2ffd06e9aad1855e2fae6c29cacb4 /drivers/scsi/aacraid
parentd1ad94ad773c34a5a3491f9dcc0a97e264f971f6 (diff)
[SCSI] aacraid: Fix parenthesis placement error
Received from Mark Salyzyn On 64 bit machines, when a 32 bit application tries to acquire the AIF, they will always get and EFAULT error response from the driver. Signed-off-by: Mark Haverkamp <markh@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aacraid')
-rw-r--r--drivers/scsi/aacraid/linit.c4
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