]> git.baikalelectronics.ru Git - kernel.git/commit
usb-storage: isd200: fix initFunction error return
authorLin Ma <linma@zju.edu.cn>
Thu, 7 Apr 2022 02:21:10 +0000 (10:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Apr 2022 17:02:42 +0000 (19:02 +0200)
commitbd8d86e1b451fdc113d1bc04f6a6a18f538cfe9d
treebd0dc1406a10bc0992d212a856265c45b94adc95
parent797d6ada316494dc8a56c958571387a8ccd7bdb6
usb-storage: isd200: 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()
-> isd200_init_info()

That is, the error return of the initFunction should tell USB core what
happened instead of using custom error code like ISD200_ERROR.

Signed-off-by: Lin Ma <linma@zju.edu.cn>
Link: https://lore.kernel.org/r/20220407022110.3757-1-linma@zju.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/isd200.c