Skip to content

Commit

Permalink
um: Fix kmalloc argument order in um/vdso/vma.c
Browse files Browse the repository at this point in the history
kmalloc size is 1st arg, not second.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Richard 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]
  • Loading branch information
Dave Jones authored and Richard Weinberger committed Nov 2, 2011
1 parent 3369465 commit 0d65ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/um/vdso/vma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0d65ede

Please sign in to comment.