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>] [day] [month] [year] [list]
Date:	Fri, 25 Apr 2008 13:25:06 +0200
From:	Joakim Tjernlund <joakim.tjernlund@...nsmode.se>
To:	'Roel Kluin' <12o3l@...cali.nl>
Cc:	galak@...nel.crashing.org, linuxppc-dev@...abs.org,
	spi-devel-general@...ts.sourceforge.net,
	dbrownell@...rs.sourceforge.net,
	'lkml' <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH 1/2] spi_mpc83xx: test below 0 on unsigned irq
	in	mpc83xx_spi_probe()


On Wed, 2008-04-23 at 23:55 +0200, Joakim Tjernlund wrote:
> > -----Original Message-----
> > From: linuxppc-dev-bounces+joakim.tjernlund=transmode.se@...abs.org [mailto:linuxppc-dev-
> > bounces+joakim.tjernlund=transmode.se@...abs.org] On Behalf Of Roel Kluin
> > Sent: den 23 april 2008 22:55
> > To: galak@...nel.crashing.org; linuxppc-dev@...abs.org
> > Cc: spi-devel-general@...ts.sourceforge.net; dbrownell@...rs.sourceforge.net; lkml
> > Subject: [PATCH 1/2] spi_mpc83xx: test below 0 on unsigned irq in mpc83xx_spi_probe()
> > 
> > mpc83xx_spi->irq is unsigned, so the test fails
> > 
> > Signed-off-by: Roel Kluin <12o3l@...cali.nl>
> 
> hmm, I got a pretty large 83xx spi patch queued at dbrownell. I hope
> that one can be applied first. Then you probably need to rediff this patch.
> 
> David, any progress on my patch?

David, heard nothing from you in a while. Don't you get my mails?

   Jocke 

> 
>  Jocke
> > ---
> > diff --git a/drivers/spi/spi_mpc83xx.c b/drivers/spi/spi_mpc83xx.c
> > index be15a62..033fd51 100644
> > --- a/drivers/spi/spi_mpc83xx.c
> > +++ b/drivers/spi/spi_mpc83xx.c
> > @@ -454,12 +454,12 @@ static int __init mpc83xx_spi_probe(struct platform_device *dev)
> >  		goto put_master;
> >  	}
> > 
> > -	mpc83xx_spi->irq = platform_get_irq(dev, 0);
> > -
> > -	if (mpc83xx_spi->irq < 0) {
> > -		ret = -ENXIO;
> > +	ret = platform_get_irq(dev, 0);
> > +	if (ret < 0)
> >  		goto unmap_io;
> > -	}
> > +
> > +	mpc83xx_spi->irq = ret;
> > +	ret = 0;
> > 
> >  	/* Register for SPI Interrupt */
> >  	ret = request_irq(mpc83xx_spi->irq, mpc83xx_spi_irq,
> > 
> > _______________________________________________
> > Linuxppc-dev mailing list
> > Linuxppc-dev@...abs.org
> > https://ozlabs.org/mailman/listinfo/linuxppc-dev
> > 
> 
> 
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@...abs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
> 
> 
--
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