[PATCH v2 1/3] ARM: PXA: PXAFB: Fix double-free issue

Vasily Khoruzhick anarsoul at gmail.com
Sat Feb 26 11:39:46 EST 2011


On Sunday 20 February 2011 20:46:20 Marek Vasut wrote:

> > @@ -629,6 +629,9 @@ static void overlay1fb_disable(struct pxafb_layer
> > *ofb)
> > 
> >  {
> >  
> >  	uint32_t lccr5 = lcd_readl(ofb->fbi, LCCR5);
> > 
> > +	if (!(lcd_readl(ofb->fbi, OVL1C1) & OVLxC1_OEN))
> > +		return;
> > +
> 
> Maybe you can even avoid reading LCCR5 above ;-)

Agreed.

Will resend soon.



More information about the linux-arm-kernel mailing list