* [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
* Re: [PATCH] um: vDSO: fix vdsop allocation
2011-11-01 11:09 [PATCH] um: vDSO: fix vdsop allocation Jiri Kosina
@ 2011-11-01 11:47 ` Richard Weinberger
0 siblings, 0 replies; 2+ messages in thread
From: Richard Weinberger @ 2011-11-01 11:47 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Jeff Dike, Andrew Morton, user-mode-linux-devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
Am 01.11.2011 12:09, schrieb Jiri Kosina:
> The kmalloc() call in init_vdso() has reverse order of arguments.
>
> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Dave sent me already a patch:
https://lkml.org/lkml/2011/10/24/388
Thanks,
//richard
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [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