[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20111109213157.697861520@clark.kroah.org>
Date: Wed, 09 Nov 2011 13:33:21 -0800
From: Greg KH <gregkh@...e.de>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org
Cc: torvalds@...ux-foundation.org, akpm@...ux-foundation.org,
alan@...rguk.ukuu.org.uk, Dave Jones <davej@...hat.com>,
Richard Weinberger <richard@....at>
Subject: [154/264] um: Fix kmalloc argument order in um/vdso/vma.c
3.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dave Jones <davej@...hat.com>
commit 0d65ede0a605d6252acc5c8a9c536c4cd0211f3c upstream.
kmalloc size is 1st arg, not second.
Signed-off-by: Dave Jones <davej@...hat.com>
Signed-off-by: Richard Weinberger <richard@....at>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
---
arch/um/sys-x86_64/vdso/vma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- 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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists