mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 01:36:52 +09:00
um: Fix kmalloc argument order in um/vdso/vma.c
commit 0d65ede0a6 upstream.
kmalloc size is 1st arg, not second.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4f0d844bad
commit
76c125d265
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user