Thread (1 message) 1 message, 1 author, 2021-01-14

Re: [PATCH v2] usb: udc: core: Use lock when write to soft_connect

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2021-01-14 09:06:23
Also in: linux-usb

On Thu, Jan 14, 2021 at 09:03:53AM +0200, Andy Shevchenko wrote:
On Thursday, January 14, 2021, Ahmed S. Darwish [off-list ref]
wrote:
quoted
On Wed, Jan 13, 2021 at 07:38:28PM -0800, Thinh Nguyen wrote:
...
quoted
@@ -1543,10 +1546,12 @@ static ssize_t soft_connect_store(struct device
*dev,
quoted
              usb_gadget_udc_stop(udc);
      } else {
              dev_err(dev, "unsupported command '%s'\n", buf);
-             return -EINVAL;
+             ret = -EINVAL;
      }

-     return n;


Should be ret = n; here.
Why?  That happened higher up in the patch.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help