Bluetooth: hci_uart_set_flow_control: Fix NULL deref when using serdev
authorHans de Goede <hdegoede@redhat.com>
Wed, 4 Oct 2017 18:43:35 +0000 (20:43 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 6 Oct 2017 18:35:47 +0000 (20:35 +0200)
commit7841d554809b518a22349e7e39b6b63f8a48d0fb
tree6d80901eff8d18023150c01bd564990d8a1f7c3e
parentc0153b0b901a16663ff91504fea25fb51d57cc29
Bluetooth: hci_uart_set_flow_control: Fix NULL deref when using serdev

Fix a NULL pointer deref (hu->tty) when calling hci_uart_set_flow_control
on hci_uart-s using serdev.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_ldisc.c