diff options
author | Kangmin Park <l4stpr0gr4m@gmail.com> | 2021-08-19 18:27:18 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2021-08-19 18:28:40 +0300 |
commit | 61969ef867d48fc76551fe50cefe0501e624766e (patch) | |
tree | f5fdbf9949247482448f7da8659816aedf01f815 /include/net | |
parent | f41a4b2b5eb7872109723dab8ae1603bdd9d9ec1 (diff) | |
download | linux-61969ef867d48fc76551fe50cefe0501e624766e.tar.xz |
Bluetooth: Fix return value in hci_dev_do_close()
hci_error_reset() return without calling hci_dev_do_open() when
hci_dev_do_close() return error value which is not 0.
Also, hci_dev_close() return hci_dev_do_close() function's return
value.
But, hci_dev_do_close() return always 0 even if hdev->shutdown
return error value. So, fix hci_dev_do_close() to save and return
the return value of the hdev->shutdown when it is called.
Signed-off-by: Kangmin Park <l4stpr0gr4m@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions