Bluetooth: Fix possible NULL dereference in hci_uart_tty_receive
This patch adds a NULL check for the HCI UART ldisc driver because some of HCI UART drivers allow hci_uart_tty_receive function to be called even though the HCI device hasn't been registered yet. Signed-off-by: NChan-yeol Park <chanyeol.park@samsung.com> Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
Showing
想要评论请 注册 或 登录