summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-10-25 00:10:26 +0200
committerJames Bottomley <JBottomley@Parallels.com>2011-10-30 11:06:58 +0100
commita63ec37629415848b5704eda5110fe8e750032ca (patch)
treec5d4ae7bd8bb6e0e592931540d62f521df1e1c94
parent[SCSI] bnx2fc: Bumped version to 1.0.9 (diff)
downloadlinux-a63ec37629415848b5704eda5110fe8e750032ca.tar.xz
linux-a63ec37629415848b5704eda5110fe8e750032ca.zip
[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>
-rw-r--r--drivers/scsi/pmcraid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
index b86db84d6f32..5163edb925cb 100644
--- a/drivers/scsi/pmcraid.c
+++ b/drivers/scsi/pmcraid.c
@@ -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");