]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
Bluetooth: Fix unnecessary error message for HCI request completion
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 27 Mar 2019 08:32:40 +0000 (16:32 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Apr 2019 12:37:29 +0000 (14:37 +0200)
commit636299928682b1896f9aaff975500008d47fcc07
treed61b12c3ed5ff7362751a8398b9e9cbc292cf5a4
parent8ba87139ee0ac9789525424cd1c26de290a6941e
Bluetooth: Fix unnecessary error message for HCI request completion

BugLink: https://bugs.launchpad.net/bugs/1748565
In case a command which completes in Command Status was sent using the
hci_cmd_send-family of APIs there would be a misleading error in the
hci_get_cmd_complete function, since the code would be trying to fetch
the Command Complete parameters when there are none.

Avoid the misleading error and silently bail out from the function in
case the received event is a command status.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
(cherry picked from commit 1629db9c75342325868243d6bca5853017d91cf8)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/bluetooth/hci_event.c