* [PATCH] um: vDSO: fix vdsop allocation
@ 2011-11-01 11:09 Jiri Kosina
2011-11-01 11:47 ` Richard Weinberger
0 siblings, 1 reply; 2+ messages in thread
From: Jiri Kosina @ 2011-11-01 11:09 UTC (permalink / raw)
To: Jeff Dike, Richard Weinberger, Andrew Morton
Cc: user-mode-linux-devel, linux-kernel
The kmalloc() call in init_vdso() has reverse order of arguments.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
---
arch/um/sys-x86_64/vdso/vma.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/um/sys-x86_64/vdso/vma.c b/arch/um/sys-x86_64/vdso/vma.c
index 9495c8d..91f4ec9 100644
--- a/arch/um/sys-x86_64/vdso/vma.c
+++ b/arch/um/sys-x86_64/vdso/vma.c
@@ -28,7 +28,7 @@ static int __init init_vdso(void)
um_vdso_addr = task_size - PAGE_SIZE;
- vdsop = kmalloc(GFP_KERNEL, sizeof(struct page *));
+ vdsop = kmalloc(sizeof(struct page *), GFP_KERNEL);
if (!vdsop)
goto oom;
--
Jiri Kosina
SUSE Labs
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-01 11:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-01 11:09 [PATCH] um: vDSO: fix vdsop allocation Jiri Kosina
2011-11-01 11:47 ` Richard Weinberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox