Bluetooth: add NULL pointer check in HCI
authorJun Nie <njun@marvell.com>
Tue, 7 Dec 2010 06:03:38 +0000 (14:03 +0800)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 10 Feb 2014 21:11:18 +0000 (16:11 -0500)
commit2f5e81c11b5d490009d2c51e929e4aaa317df121
treed2554619ae0d27773d0f67410349f6d60958c5f1
parent6dffe152f694412b91577145f7bbdf2dc5dd2be4
Bluetooth: add NULL pointer check in HCI

commit d9319560b86839506c2011346b1f2e61438a3c73 upstream.

If we fail to find a hci device pointer in hci_uart, don't try
to deref the NULL one we do have.

Signed-off-by: Jun Nie <njun@marvell.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/bluetooth/hci_ldisc.c