]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: phy: return -ENODEV on failure of try_module_get
authorArjun Sreedharan <arjun024@gmail.com>
Mon, 18 Aug 2014 05:47:33 +0000 (11:17 +0530)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 11:14:37 +0000 (12:14 +0100)
commit53784254d9657ed4c643e755ec1c574a6a43410f
treed4476a015426473c1f21616a1b7e35ff3bedec61
parent297b3ddd679ac4e4958661df855595bb49c42a18
usb: phy: return -ENODEV on failure of try_module_get

commit 2c4e3dbf63b39d44a291db70016c718f45d9cd46 upstream.

When __usb_find_phy_dev() does not return error and
try_module_get() fails, return -ENODEV.

Signed-off-by: Arjun Sreedharan <arjun024@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/phy/phy.c