[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1319497625.2094.4.camel@Joe-Laptop>
Date: Mon, 24 Oct 2011 16:07:05 -0700
From: Joe Perches <joe@...ches.com>
To: Jesper Juhl <jj@...osbits.net>
Cc: richard -rw- weinberger <richard.weinberger@...il.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
"James E.J. Bottomley" <JBottomley@...allels.com>,
Anil Ravindranath <anil_ravindranath@...-sierra.com>,
davej@...hat.com
Subject: Re: [PATCH] SCSI, pmcraid: Fix kmalloc() argument order in
pmcraid_chr_ioctl()
On Tue, 2011-10-25 at 00:57 +0200, Jesper Juhl wrote:
> On Tue, 25 Oct 2011, richard -rw- weinberger wrote:
> > On Tue, Oct 25, 2011 at 12:42 AM, Joe Perches <joe@...ches.com> wrote:
> > > On Tue, 2011-10-25 at 00:38 +0200, Jesper Juhl wrote:
> > BTW: What about a checkpatch.pl rule to detect such a misuse of kmalloc()?
> > We could grep for "k[mzc]alloc(GFP_".
> >
> I like that idea. That's exactely how I find these; by doing
> egrep -R "[kv][mcz]alloc *\( *GFP_"
> on the source tree.
> Might as well be in checkpatch.pl
Well, also from a year ago...
https://lkml.org/lkml/2010/10/31/121
--
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