Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d65ede0 authored by Dave Jones's avatar Dave Jones Committed by Richard Weinberger
Browse files

um: Fix kmalloc argument order in um/vdso/vma.c



kmalloc size is 1st arg, not second.

Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>

Cc: <stable@kernel.org> # 3.0.x
[richard@nod.at: on 3.0 the to be patched file is
arch/um/sys-x86_64/vdso/vma.c]
parent 3369465e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;