From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754207Ab1JXWzT (ORCPT ); Mon, 24 Oct 2011 18:55:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21121 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753799Ab1JXWzR (ORCPT ); Mon, 24 Oct 2011 18:55:17 -0400 Date: Mon, 24 Oct 2011 18:54:59 -0400 From: Dave Jones 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 Subject: Re: [PATCH] SCSI, pmcraid: Fix kmalloc() argument order in pmcraid_chr_ioctl() Message-ID: <20111024225459.GB25654@redhat.com> Mail-Followup-To: Dave Jones , richard -rw- weinberger , Joe Perches , Jesper Juhl , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "James E.J. Bottomley" , Anil Ravindranath References: <1319496149.2094.3.camel@Joe-Laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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