diff options
-rw-r--r-- | drivers/block/cpqarray.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c index 9473215956f9..d53b0291c44b 100644 --- a/drivers/block/cpqarray.c +++ b/drivers/block/cpqarray.c | |||
@@ -1179,7 +1179,8 @@ out_passthru: | |||
1179 | return error; | 1179 | return error; |
1180 | case IDAGETCTLRSIG: | 1180 | case IDAGETCTLRSIG: |
1181 | if (!arg) return -EINVAL; | 1181 | if (!arg) return -EINVAL; |
1182 | put_user(host->ctlr_sig, (int __user *)arg); | 1182 | if (put_user(host->ctlr_sig, (int __user *)arg)) |
1183 | return -EFAULT; | ||
1183 | return 0; | 1184 | return 0; |
1184 | case IDAREVALIDATEVOLS: | 1185 | case IDAREVALIDATEVOLS: |
1185 | if (MINOR(bdev->bd_dev) != 0) | 1186 | if (MINOR(bdev->bd_dev) != 0) |
@@ -1187,7 +1188,8 @@ out_passthru: | |||
1187 | return revalidate_allvol(host); | 1188 | return revalidate_allvol(host); |
1188 | case IDADRIVERVERSION: | 1189 | case IDADRIVERVERSION: |
1189 | if (!arg) return -EINVAL; | 1190 | if (!arg) return -EINVAL; |
1190 | put_user(DRIVER_VERSION, (unsigned long __user *)arg); | 1191 | if (put_user(DRIVER_VERSION, (unsigned long __user *)arg)) |
1192 | return -EFAULT; | ||
1191 | return 0; | 1193 | return 0; |
1192 | case IDAGETPCIINFO: | 1194 | case IDAGETPCIINFO: |
1193 | { | 1195 | { |