mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
Bluetooth: btusb: Return error code when getting patch status failed
commit995d948cf2
upstream. If there are failure cases in getting patch status, it should return the error code (-EIO). Fixes:fc342c4dc4
("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>
This commit is contained in:
parent
9e2d8d9c0e
commit
a15a5eabae
1 changed files with 1 additions and 0 deletions
|
@ -2561,6 +2561,7 @@ static int btusb_mtk_setup_firmware_79xx(struct hci_dev *hdev, const char *fwnam
|
|||
} else {
|
||||
bt_dev_err(hdev, "Failed wmt patch dwnld status (%d)",
|
||||
status);
|
||||
err = -EIO;
|
||||
goto err_release_fw;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue