From: Dave Jones Date: Mon, 24 Oct 2011 22:15:32 +0000 (-0400) Subject: um: Fix kmalloc argument order in um/vdso/vma.c X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0d65ede0a605d6252acc5c8a9c536c4cd0211f3c;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git um: Fix kmalloc argument order in um/vdso/vma.c kmalloc size is 1st arg, not second. Signed-off-by: Dave Jones Signed-off-by: Richard Weinberger Cc: # 3.0.x [richard@nod.at: on 3.0 the to be patched file is arch/um/sys-x86_64/vdso/vma.c] --- diff --git a/arch/x86/um/vdso/vma.c b/arch/x86/um/vdso/vma.c index 9495c8d0ce37..91f4ec9a0a56 100644 --- a/arch/x86/um/vdso/vma.c +++ b/arch/x86/um/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;