Hi Felipe, On 09.03.2016 02:57, Vladimir Zapolskiy wrote: > The usb_get_phy() function returns either a valid pointer to phy or > ERR_PTR() error, check for NULL always fails and may lead to oops on > error path, fix this issue. > > Signed-off-by: Vladimir Zapolskiy <v...@mleia.com> > --- > drivers/usb/musb/jz4740.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/musb/jz4740.c b/drivers/usb/musb/jz4740.c > index 5e5a8fa..bc88899 100644 > --- a/drivers/usb/musb/jz4740.c > +++ b/drivers/usb/musb/jz4740.c > @@ -83,9 +83,9 @@ static int jz4740_musb_init(struct musb *musb) > { > usb_phy_generic_register(); > musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2); > - if (!musb->xceiv) { > + if (IS_ERR(musb->xceiv)) { > pr_err("HS UDC: no transceiver configured\n"); > - return -ENODEV; > + return PTR_ERR(musb->xceiv); > } > > /* Silicon does not implement ConfigData register. >
FYI I got this message : <ba...@ti.com>: host cluster5.us.messagelabs.com[216.82.242.147] said: 550 Invalid recipient <ba...@ti.com> (#5.1.1) (in reply to RCPT TO command) You may consider to update your email address in MAINTAINERS. -- With best wishes, Vladimir -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html