diff options
| author | Lin Ma <linma@zju.edu.cn> | 2022-04-07 10:21:15 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-21 19:02:40 +0200 |
| commit | 1abf67983a4fd74133b3d2b43722704c744621a6 (patch) | |
| tree | 386bfc165122b5f4eaec547ce75ba825941d5348 /net/lapb/lapb_iface.c | |
| parent | 17b2fb9c231ea418fa6c8643f2c786ec991b56f5 (diff) | |
usb-storage: shuttle_usbat: fix initFunction error return
The initFunction is called when probing a new device, its call relation
is like:
USB core: probe() -> usb_stor_probe2() -> usb_stor_acquire_resources()
-> init_usbat_cd() or init_usbat_flash() -> init_usbat()
That is, the error return of the initFunction should tell USB core what
happened instead of using constant or error code like
USB_STOR_TRANSPORT_FAILED.
Signed-off-by: Lin Ma <linma@zju.edu.cn>
Link: https://lore.kernel.org/r/20220407022115.3773-1-linma@zju.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions
