提交 a63ec376 编写于 作者: D Dave Jones 提交者: James Bottomley

[SCSI] pmcraid: pmcraid_chr_ioctl uses incorrect argument order to kmalloc()

Size is 1st arg, not second.
Signed-off-by: NDave Jones <davej@redhat.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 fd254189
...@@ -4102,7 +4102,7 @@ static long pmcraid_chr_ioctl( ...@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册