summaryrefslogtreecommitdiff
path: root/drivers/bluetooth/hci_bcm.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-05-27 22:04:51 +0300
committerMarcel Holtmann <marcel@holtmann.org>2018-05-30 09:46:17 +0300
commit412fe29ffcf9a1ba9f125e72ee3da957cd6a0064 (patch)
tree24e60ae102719943d15a3030ef34fef681b8be02 /drivers/bluetooth/hci_bcm.c
parentc2e7f5dee722a6f6337540b15000bed575c80793 (diff)
downloadlinux-412fe29ffcf9a1ba9f125e72ee3da957cd6a0064.tar.xz
Bluetooth: hci_uart: Restore hci_dev->flush callback on open()
For reasons explained in detail in commit 3611f4d2a5e0 ("hci_ldisc: fix null pointer deref") the hci_uart_close() functions sets hci_dev->flush to NULL. But the device may be re-opened after a close, this commit restores the hci_dev->flush callback on open(). Note this commit also moves the nearly empty defition of hci_uart_open() a bit down in the file to avoid the need for forward declaring hci_uart_flush(). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_bcm.c')
0 files changed, 0 insertions, 0 deletions