From: Mathias Krause Date: Tue, 15 Apr 2014 05:58:15 +0000 (+0200) Subject: usb: phy: return an error in usb_get_phy() if try_module_get() fails X-Git-Tag: omap-for-v3.16/pm-signed~48^2~20^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dc9cb0c9ad0f999e29ce4c4f307cd2abbe752d3;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed