summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMurai Takashi <tmurai01@gmail.com>2017-01-08 20:38:38 (GMT)
committerAugustin Cavalier <waddlesplash@gmail.com>2017-01-10 22:17:41 (GMT)
commit7cfdd9242c0fcfd4dbcae9b15a249697072f3369 (patch)
treeabcde7284054efacd796ac5b88326d684a2dcdda
parente6004b7729710ea60bdcce10e551508a5a855a1f (diff)
h2generic.cpp: fix use after free.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
-rw-r--r--src/add-ons/kernel/drivers/bluetooth/h2/h2generic/h2generic.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/h2generic.cpp b/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/h2generic.cpp
index 9dad099..d0d6b2f 100644
--- a/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/h2generic.cpp
+++ b/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/h2generic.cpp
@@ -149,6 +149,7 @@ bail1:
delete_sem(new_bt_dev->cmd_complete);
bail0:
free(new_bt_dev);
+ new_bt_dev = NULL;
exit:
return new_bt_dev;
}