Commit a63ec376 authored by Dave Jones's avatar Dave Jones Committed by James Bottomley
Browse files

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



Size is 1st arg, not second.

Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent fd254189
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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");