[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.00.1110250047430.19795@swampdragon.chaosbits.net>
Date: Tue, 25 Oct 2011 00:51:38 +0200 (CEST)
From: Jesper Juhl <jj@...osbits.net>
To: Joe Perches <joe@...ches.com>
cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
"James E.J. Bottomley" <JBottomley@...allels.com>,
Anil Ravindranath <anil_ravindranath@...-sierra.com>
Subject: Re: [PATCH] SCSI, pmcraid: Fix kmalloc() argument order in
pmcraid_chr_ioctl()
On Mon, 24 Oct 2011, Joe Perches wrote:
> On Tue, 2011-10-25 at 00:38 +0200, Jesper Juhl wrote:
> > The first argument to kmalloc() is the size, the second is
> > flags. pmcraid_chr_ioctl() gets this wrong and swaps the
> > arguments. This patch corrects the mistake.
> >
> > Signed-off-by: Jesper Juhl <jj@...osbits.net>
> > ---
> > drivers/scsi/pmcraid.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > compile tested only.
> >
> > diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
> > index d079f9a..da19bdf 100644
> > --- a/drivers/scsi/pmcraid.c
> > +++ b/drivers/scsi/pmcraid.c
> > @@ -4103,7 +4103,7 @@ 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");
> > --
> > 1.7.7
> >
> >
>
> James seems to be uninterested in picking up
> obvious and trivially correct patches.
>
I've been getting that impression as well..
For example:
http://git.kernel.org/?p=linux/kernel/git/next/linux-next-history.git;a=commitdiff;h=2abe1b25e56b7c8e65f101fb22282dafeb5ec4ef
which I've been sumbitting numerous times over a long period of time
(these days akpm has picked it up and sends it on repeatedly, so I don't
really bother myself any more)...
> >From a year ago...
>
> https://lkml.org/lkml/2010/10/31/123
>
Ok, so you obviously got there first and your patch should be merged
rather than mine. I was not aware of that.
> James?
>
?
--
Jesper Juhl <jj@...osbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
--
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