summaryrefslogtreecommitdiffstats
path: root/tools/spi
diff options
context:
space:
mode:
authorDean Jenkins <Dean_Jenkins@mentor.com>2017-04-20 18:06:39 +0100
committerMarcel Holtmann <marcel@holtmann.org>2017-04-22 10:28:40 +0200
commitcb926520e18e6aecc63614b8aa2e40d431aa29cd (patch)
tree169c45045d6a056f464e1b6d1e76ff7b232a687a /tools/spi
parenteee6044f6694ae21f6f4b8e5ce4f13dbda0c112b (diff)
downloadlinux-cb926520e18e6aecc63614b8aa2e40d431aa29cd.tar.bz2
Bluetooth: hci_ldisc: Add missing return in hci_uart_init_work()
If hci_register_dev() returns an error in hci_uart_init_work() then the HCI_UART_REGISTERED bit gets erroneously set due to a missing return statement. Therefore, add the missing return statement. The consequence of the missing return is that the HCI UART is not registered but HCI_UART_REGISTERED is set which allows the code to think that hu->hdev is safe to access but hu->hdev has been freed so could lead to a crash. Signed-off-by: Dean Jenkins <Dean_Jenkins@mentor.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'tools/spi')
0 files changed, 0 insertions, 0 deletions