[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.00.1108012343230.31999@swampdragon.chaosbits.net>
Date: Mon, 1 Aug 2011 23:45:06 +0200 (CEST)
From: Jesper Juhl <jj@...osbits.net>
To: linux-kernel@...r.kernel.org
cc: linux-scsi@...r.kernel.org,
Anil Ravindranath <anil_ravindranath@...-sierra.com>,
"James E.J. Bottomley" <JBottomley@...allels.com>
Subject: [PATCH][Resend] SCSI: pmcraid: Fix swapped kmalloc() arguments
pmcraid_chr_ioctl() contains a kmalloc() call where the arguments are
switched, fix that.
Signed-off-by: Jesper Juhl <jj@...osbits.net>
---
drivers/scsi/pmcraid.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
index b86db84..559440b 100644
--- a/drivers/scsi/pmcraid.c
+++ b/drivers/scsi/pmcraid.c
@@ -4102,8 +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");
return -ENOMEM;
--
1.7.6
--
Jesper Juhl <jj@...osbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists