Hi Hans, > 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@xxxxxxxxxx> > --- > drivers/bluetooth/hci_ldisc.c | 20 +++++++++++--------- > drivers/bluetooth/hci_serdev.c | 19 +++++++++++-------- > 2 files changed, 22 insertions(+), 17 deletions(-) this patch has been cherry-picked and applied to bluetooth-next tree. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html