Bluetooth: btusb: Return error code when getting patch status failed
authorMark Chen <mark-yw.chen@mediatek.com>
Mon, 6 Dec 2021 17:33:43 +0000 (01:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:05:22 +0000 (11:05 +0100)
commita15a5eabae418ff91ebce8de3f6815433b49ad1d
tree749c2146821f8222f8cec18e09f198d593c426bf
parent9e2d8d9c0e330f3af0c43c8362bf0e5d9f5f1137
Bluetooth: btusb: Return error code when getting patch status failed

commit 995d948cf2e45834275f07afc1c9881a9902e73c upstream.

If there are failure cases in getting patch status, it should return the
error code (-EIO).

Fixes: fc342c4dc4087 ("Bluetooth: btusb: Add protocol support for MediaTek MT7921U USB devices")
Co-developed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Mark Chen <mark-yw.chen@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bluetooth/btusb.c