diff options
| author | Dan Carpenter <[email protected]> | 2021-01-28 09:33:42 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-01-31 12:53:39 +0000 |
| commit | 3e1f4a2e1184ae6ad7f4caf682ced9554141a0f4 (patch) | |
| tree | 0b943f549f087f775567cbd54e19b0a915469382 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | Merge tag 'usb-serial-5.11-rc6' of https://git.kernel.org/pub/scm/linux/kerne... (diff) | |
| download | kernel-3e1f4a2e1184ae6ad7f4caf682ced9554141a0f4.tar.gz kernel-3e1f4a2e1184ae6ad7f4caf682ced9554141a0f4.zip | |
USB: gadget: legacy: fix an error code in eth_bind()
This code should return -ENOMEM if the allocation fails but it currently
returns success.
Fixes: 9b95236eebdb ("usb: gadget: ether: allocate and init otg descriptor by otg capabilities")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/YBKE9rqVuJEOUWpW@mwanda
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
