projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd25418
)
[SCSI] pmcraid: pmcraid_chr_ioctl uses incorrect argument order to kmalloc()
author
Dave Jones
<davej@redhat.com>
Mon, 24 Oct 2011 22:10:26 +0000
(18:10 -0400)
committer
James Bottomley
<JBottomley@Parallels.com>
Sun, 30 Oct 2011 10:06:58 +0000
(14:06 +0400)
Size is 1st arg, not second.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/pmcraid.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/pmcraid.c
b/drivers/scsi/pmcraid.c
index b86db84d6f325c98623233d1a884ffca787b0680..5163edb925cb33684702cc4c4b061a254c2b98df 100644
(file)
--- 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");