From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756889Ab0JaWes (ORCPT ); Sun, 31 Oct 2010 18:34:48 -0400 Received: from mail.perches.com ([173.55.12.10]:3904 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756819Ab0JaWeB (ORCPT ); Sun, 31 Oct 2010 18:34:01 -0400 From: Joe Perches To: linux-kernel@vger.kernel.org Cc: Anil Ravindranath , "James E.J. Bottomley" , linux-scsi@vger.kernel.org Subject: [PATCH 2/4] drivers/scsi/pmcraid.c: Fix k.alloc switched arguments Date: Sun, 31 Oct 2010 15:33:54 -0700 Message-Id: X-Mailer: git-send-email 1.7.3.1.g432b3.dirty In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org And a typo fix of faile to failed. Signed-off-by: Joe Perches --- drivers/scsi/pmcraid.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index 4b87657..e5a694a 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c @@ -4094,10 +4094,10 @@ static long pmcraid_chr_ioctl( struct pmcraid_ioctl_header *hdr = NULL; int retval = -ENOTTY; - hdr = kmalloc(GFP_KERNEL, sizeof(struct pmcraid_ioctl_header)); + hdr = kmalloc(sizeof(struct pmcraid_ioctl_header), GFP_KERNEL); if (!hdr) { - pmcraid_err("faile to allocate memory for ioctl header\n"); + pmcraid_err("failed to allocate memory for ioctl header\n"); return -ENOMEM; } -- 1.7.3.1.g432b3.dirty