]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_ll: Fix download_firmware() return when __hci_cmd_sync fails
authorGuodong Xu <guodong.xu@linaro.org>
Mon, 22 May 2017 13:50:42 +0000 (21:50 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 23 May 2017 14:16:31 +0000 (16:16 +0200)
commit54996f14c68afe378ed4348e9b26ccc3b96cf176
tree2cbad61b7860c7bfe0d50cc71b068020cb807d63
parent101aab9146a831c77ad2041f3baacdc79285b599
Bluetooth: hci_ll: Fix download_firmware() return when __hci_cmd_sync fails

When __hci_cmd_sync() fails, download_firmware() should also fail, and
the same error value should be returned as PTR_ERR(skb).

Without this fix, download_firmware() will return a success when it actually
failed in __hci_cmd_sync().

Fixes: 6c38e640ef46 ("bluetooth: hci_uart: add LL protocol serdev driver support")
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_ll.c