Re: [PATCH 2/2] staging: vme: fix bug in vme_register_bridge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 23, 2011 at 09:44:42AM +0000, Martyn Welch wrote:
> On 23/02/11 09:26, Manohar Vanga wrote:
> > Fix a bug in vme_register_bridge that results in an infinite loop in
> > the event that device_register fails.

[snip]

> > +	/*
> > +	 * Ignore the failed device and unregister the rest.
> > +	 */
> > +	i--;
> >  	while (i > -1) {
> >  		dev = &bridge->dev[i];
> >  		device_unregister(dev);
> > +		i--;
> >  	}

Ah.  I see you fixed the bug already.  Good deal.  Btw, no need to add
comments for the obvious stuff.

You still aren't CCing the right list, devel@xxxxxxxxxxxxxxxxxxxxx
It's not enough for Martyn to sent it to us, because by that point 
the patch has '> ' chars on every line.

regards,
dan carpenter
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux