Loading drivers/block/cpqarray.c +4 −2 Original line number Original line Diff line number Diff line Loading @@ -1179,7 +1179,8 @@ static int ida_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned in return error; return error; case IDAGETCTLRSIG: case IDAGETCTLRSIG: if (!arg) return -EINVAL; if (!arg) return -EINVAL; put_user(host->ctlr_sig, (int __user *)arg); if (put_user(host->ctlr_sig, (int __user *)arg)) return -EFAULT; return 0; return 0; case IDAREVALIDATEVOLS: case IDAREVALIDATEVOLS: if (MINOR(bdev->bd_dev) != 0) if (MINOR(bdev->bd_dev) != 0) Loading @@ -1187,7 +1188,8 @@ static int ida_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned in return revalidate_allvol(host); return revalidate_allvol(host); case IDADRIVERVERSION: case IDADRIVERVERSION: if (!arg) return -EINVAL; if (!arg) return -EINVAL; put_user(DRIVER_VERSION, (unsigned long __user *)arg); if (put_user(DRIVER_VERSION, (unsigned long __user *)arg)) return -EFAULT; return 0; return 0; case IDAGETPCIINFO: case IDAGETPCIINFO: { { Loading Loading
drivers/block/cpqarray.c +4 −2 Original line number Original line Diff line number Diff line Loading @@ -1179,7 +1179,8 @@ static int ida_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned in return error; return error; case IDAGETCTLRSIG: case IDAGETCTLRSIG: if (!arg) return -EINVAL; if (!arg) return -EINVAL; put_user(host->ctlr_sig, (int __user *)arg); if (put_user(host->ctlr_sig, (int __user *)arg)) return -EFAULT; return 0; return 0; case IDAREVALIDATEVOLS: case IDAREVALIDATEVOLS: if (MINOR(bdev->bd_dev) != 0) if (MINOR(bdev->bd_dev) != 0) Loading @@ -1187,7 +1188,8 @@ static int ida_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned in return revalidate_allvol(host); return revalidate_allvol(host); case IDADRIVERVERSION: case IDADRIVERVERSION: if (!arg) return -EINVAL; if (!arg) return -EINVAL; put_user(DRIVER_VERSION, (unsigned long __user *)arg); if (put_user(DRIVER_VERSION, (unsigned long __user *)arg)) return -EFAULT; return 0; return 0; case IDAGETPCIINFO: case IDAGETPCIINFO: { { Loading