From: Dave Jones Date: Tue, 12 Jul 2005 20:58:08 +0000 (-0700) Subject: [PATCH] aacraid: swapped kmalloc args. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4645df1035b34be2d431d6a10b08e1c06bcd3361;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] aacraid: swapped kmalloc args. Signed-off-by: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/scsi/aacraid/commctrl.c b/drivers/scsi/aacraid/commctrl.c index 1fef92d55dee..390cd67c57c0 100644 --- a/drivers/scsi/aacraid/commctrl.c +++ b/drivers/scsi/aacraid/commctrl.c @@ -469,7 +469,7 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) goto cleanup; } - user_srbcmd = kmalloc(GFP_KERNEL, fibsize); + user_srbcmd = kmalloc(fibsize, GFP_KERNEL); if (!user_srbcmd) { dprintk((KERN_DEBUG"aacraid: Could not make a copy of the srb\n")); rcode = -ENOMEM;