]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Bluetooth: Fix possible NULL dereference in hci_uart_tty_receive
authorChan-yeol Park <chanyeol.park@samsung.com>
Tue, 2 Apr 2013 12:24:22 +0000 (21:24 +0900)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 4 Apr 2013 09:36:00 +0000 (12:36 +0300)
commit788f0923d3cb5256b12113c041c2381e4b3cecf6
treee351468b54d7b70a8c6542c60aefa5f3e1ac6388
parentc2578202919ace314908306346b99796d46aab64
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: Chan-yeol Park <chanyeol.park@samsung.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/hci_ldisc.c