lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 9 Feb 2011 11:52:38 -0800
From:	Greg KH <greg@...ah.com>
To:	Mark Lord <kernel@...savvy.com>
Cc:	Linux Kernel <linux-kernel@...r.kernel.org>,
	Jarod Wilson <jarod@...sonet.com>
Subject: Re: PATCH: drivers/staging/lirc/lirc_serial.c: use IS_ERR()

On Tue, Feb 08, 2011 at 04:34:39PM -0500, Mark Lord wrote:
> On 11-02-06 03:39 PM, Mark Lord wrote:
> > The lirc_serial.c module has never worked with ordinary homebrew
> > serial blaster hardware, and leaks memory when this is attempted.
> > 
> > Fix it by replacing incorrect usage of PTR_ERR() with IS_ERR().
> > (patch is inline and also attached to bypass mailer issues).
> > 
> > Signed-off-by: Mark Lord <mlord@...ox.com>
> > 
> > --- linux-2.6.37/drivers/staging/lirc/lirc_serial.c	2011-01-04
> > 19:50:19.000000000 -0500
> > +++ linux/drivers/staging/lirc/lirc_serial.c	2011-02-06 15:33:49.854453928 -0500
> > @@ -966,7 +966,7 @@
> >  	if (n % sizeof(int) || count % 2 == 0)
> >  		return -EINVAL;
> >  	wbuf = memdup_user(buf, n);
> > -	if (PTR_ERR(wbuf))
> > +	if (IS_ERR(wbuf))
> >  		return PTR_ERR(wbuf);
> >  	spin_lock_irqsave(&hardware[type].lock, flags);
> >  	if (type == LIRC_IRDEO) {
> 
> 
> Anyone out there?
> 
> Greg?

Patience please, I just got over the flu and am now catching up on
patches.  I'll go queue this up now.

thanks,

greg k-h
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ