Searched hist:"9 dc9cb0c" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/usb/phy/ |
H A D | phy.c | 9dc9cb0c Tue Apr 15 00:58:15 CDT 2014 Mathias Krause <minipli@googlemail.com> usb: phy: return an error in usb_get_phy() if try_module_get() fails
In case we found a matching USB PHY in usb_get_phy() but the call to try_module_get() fails, we shouldn't return a (probably soon dangling) pointer but an ERR_PTR instead.
Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: Felipe Balbi <balbi@ti.com> 9dc9cb0c Tue Apr 15 00:58:15 CDT 2014 Mathias Krause <minipli@googlemail.com> usb: phy: return an error in usb_get_phy() if try_module_get() fails In case we found a matching USB PHY in usb_get_phy() but the call to try_module_get() fails, we shouldn't return a (probably soon dangling) pointer but an ERR_PTR instead. Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
|