On Monday 04 April 2005 10:02 am, Dale Farnsworth wrote:
> This patch avoids a null-pointer dereference and fixes a typo.
> 
> Signed-off-by: Sylvain Munaut <[EMAIL PROTECTED]>
> Acked-by: Dale Farnsworth <[EMAIL PROTECTED]>

Acked-by:  David Brownell <[EMAIL PROTECTED]>


> ---
> ===== drivers/usb/host/ohci-ppc-soc.c 1.2 vs edited =====
> --- 1.2/drivers/usb/host/ohci-ppc-soc.c       2005-03-08 05:43:18 +01:00
> +++ edited/drivers/usb/host/ohci-ppc-soc.c    2005-03-19 16:06:23 +01:00
> @@ -73,7 +73,7 @@
>               goto err2;
>       }
>  
> -     if (pd->start && (retval = pd->start(pdev)))
> +     if (pd && pd->start && (retval = pd->start(pdev)))
>               goto err3;
>  
>       ohci = hcd_to_ohci(hcd);
> @@ -123,7 +123,7 @@
>  
>       iounmap(hcd->regs);
>       release_mem_region(hcd->rsrc_start, hcd->rsrc_len);
> -     usb_hcd_put(hcd);
> +     usb_put_hcd(hcd);
>  }
>  
>  static int __devinit
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to