diff options
author | Dean Jenkins <[email protected]> | 2017-04-20 18:06:40 +0100 |
---|---|---|
committer | Marcel Holtmann <[email protected]> | 2017-04-22 10:28:40 +0200 |
commit | a225b8c70af9368cfcb52a3608bc862bc88a7801 (patch) | |
tree | 81a84e350a07ff915609bca3d88001f34c73f873 /lib/memory-notifier-error-inject.c | |
parent | cb926520e18e6aecc63614b8aa2e40d431aa29cd (diff) |
Bluetooth: hci_ldisc: Ensure hu->hdev set to NULL before freeing hdev
When hci_register_dev() fails, hu->hdev should be set to NULL before
freeing hdev. This avoids potential use of hu->hdev after it has been
freed.
This commit sets hu->hdev to NULL before calling hci_free_dev() in error
handling scenarios in hci_uart_init_work() and hci_uart_register_dev().
Signed-off-by: Dean Jenkins <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions