Patch "usb: mtu3: fix error return code in ssusb_gadget_init()" has been added to the 4.14-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
usb: mtu3: fix error return code in ssusb_gadget_init()
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
usb-mtu3-fix-error-return-code-in-ssusb_gadget_init.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Wed Dec 6 18:04:41 CET 2017
From: Chunfeng Yun <[email protected]>
Date: Fri, 13 Oct 2017 17:10:37 +0800
Subject: usb: mtu3: fix error return code in ssusb_gadget_init()
From: Chunfeng Yun <[email protected]>
[ Upstream commit c162ff0aaaac456ef29aebd1e9d4d3e305cd3279 ]
When failing to get IRQ number, platform_get_irq() may return -EPROBE_DEFER, but we ignore it and always return -ENODEV, so fix it.
--- drivers/usb/mtu3/mtu3_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/mtu3/mtu3_core.c +2 -2
@@ -774,9 +774,9 @@ int ssusb_gadget_init(struct ssusb_mtk *return -ENOMEM ; mtu->irq =platform_get_irq (pdev,0 ); -if (mtu->irq <=0 ) { +if (mtu->irq <0 ) {dev_err (dev,"fail to get irq number\n" ); -return -ENODEV ; +return mtu->irq; }dev_info (dev,"irq %d\n" , mtu->irq);
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/usb-mtu3-fix-error-return-code-in-ssusb_gadget_init.patch