Re: [PATCH 1/3] usb: phy: get phy driver's module if phy is acquired

2012-08-23 Thread Marc Kleine-Budde
On 08/23/2012 08:33 PM, Alan Stern wrote: > On Thu, 23 Aug 2012, Marc Kleine-Budde wrote: > >> Otherwise the module's refcount is 0 and it's possible to unload the module, >> even if the phy is in use. > >> @@ -139,8 +140,10 @@ EXPORT_SYMBOL(devm_usb_put_phy); >> */ >> void usb_put_phy(struct

Re: [PATCH 1/3] usb: phy: get phy driver's module if phy is acquired

2012-08-23 Thread Alan Stern
On Thu, 23 Aug 2012, Marc Kleine-Budde wrote: > Otherwise the module's refcount is 0 and it's possible to unload the module, > even if the phy is in use. > @@ -139,8 +140,10 @@ EXPORT_SYMBOL(devm_usb_put_phy); > */ > void usb_put_phy(struct usb_phy *x) > { > - if (x) > + if (x) { >