[PATCH v11 2/3] Bluetooth: hci_uart: check if hdev is present before using it

2016-05-06 Thread Amitkumar Karwar
From: Ganapathi Bhat The hdev struct might not have initialized in protocol receive handler. This patch adds necessary checks. Signed-off-by: Ganapathi Bhat Signed-off-by: Amitkumar Karwar --- drivers/bluetooth/hci_ldisc.c | 6 --

[PATCH v11 2/3] Bluetooth: hci_uart: check if hdev is present before using it

2016-05-06 Thread Amitkumar Karwar
From: Ganapathi Bhat The hdev struct might not have initialized in protocol receive handler. This patch adds necessary checks. Signed-off-by: Ganapathi Bhat Signed-off-by: Amitkumar Karwar --- drivers/bluetooth/hci_ldisc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff