|
@@ -4102,7 +4102,7 @@ static long pmcraid_chr_ioctl(
|
|
struct pmcraid_ioctl_header *hdr = NULL;
|
|
struct pmcraid_ioctl_header *hdr = NULL;
|
|
int retval = -ENOTTY;
|
|
int retval = -ENOTTY;
|
|
|
|
|
|
- hdr = kmalloc(GFP_KERNEL, sizeof(struct pmcraid_ioctl_header));
|
|
|
|
|
|
+ hdr = kmalloc(sizeof(struct pmcraid_ioctl_header), GFP_KERNEL);
|
|
|
|
|
|
if (!hdr) {
|
|
if (!hdr) {
|
|
pmcraid_err("faile to allocate memory for ioctl header\n");
|
|
pmcraid_err("faile to allocate memory for ioctl header\n");
|