|
@@ -1529,8 +1529,7 @@ static int cciss_bigpassthru(ctlr_info_t *h, void __user *argp)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
if (!capable(CAP_SYS_RAWIO))
|
|
if (!capable(CAP_SYS_RAWIO))
|
|
return -EPERM;
|
|
return -EPERM;
|
|
- ioc = (BIG_IOCTL_Command_struct *)
|
|
|
|
- kmalloc(sizeof(*ioc), GFP_KERNEL);
|
|
|
|
|
|
+ ioc = kmalloc(sizeof(*ioc), GFP_KERNEL);
|
|
if (!ioc) {
|
|
if (!ioc) {
|
|
status = -ENOMEM;
|
|
status = -ENOMEM;
|
|
goto cleanup1;
|
|
goto cleanup1;
|