Skip to content
Commit 9dc9cb0c authored by Mathias Krause's avatar Mathias Krause Committed by Felipe Balbi
Browse files

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: default avatarMathias Krause <minipli@googlemail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent ae8dd0cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment