mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 00:24:12 +08:00
[SCSI] pmcraid: pmcraid_chr_ioctl uses incorrect argument order to kmalloc()
Size is 1st arg, not second. Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
fd2541893d
commit
a63ec37629
@ -4102,7 +4102,7 @@ static long pmcraid_chr_ioctl(
|
||||
struct pmcraid_ioctl_header *hdr = NULL;
|
||||
int retval = -ENOTTY;
|
||||
|
||||
hdr = kmalloc(GFP_KERNEL, sizeof(struct pmcraid_ioctl_header));
|
||||
hdr = kmalloc(sizeof(struct pmcraid_ioctl_header), GFP_KERNEL);
|
||||
|
||||
if (!hdr) {
|
||||
pmcraid_err("faile to allocate memory for ioctl header\n");
|
||||
|
Loading…
Reference in New Issue
Block a user