From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Jones Subject: Re: [PATCH] SCSI, pmcraid: Fix kmalloc() argument order in pmcraid_chr_ioctl() Date: Mon, 24 Oct 2011 18:54:59 -0400 Message-ID: <20111024225459.GB25654@redhat.com> References: <1319496149.2094.3.camel@Joe-Laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: richard -rw- weinberger Cc: Joe Perches , Jesper Juhl , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "James E.J. Bottomley" , Anil Ravindranath List-Id: linux-scsi@vger.kernel.org On Tue, Oct 25, 2011 at 12:50:08AM +0200, richard -rw- weinberger wrote: > BTW: What about a checkpatch.pl rule to detect such a misuse of kmalloc()? > We could grep for "k[mzc]alloc(GFP_". Make sure to ignore bio_kmalloc (which has reverse argument order to kmalloc, ugh) Dave