From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> NULL pointer data->if_bluetooth will be dereferenced without return. --- android/android-tester.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/android-tester.c b/android/android-tester.c index 04fa811..e34d1bd 100644 --- a/android/android-tester.c +++ b/android/android-tester.c @@ -1052,7 +1052,9 @@ static void setup_enabled_adapter(const void *test_data) if (status != BT_STATUS_SUCCESS) { data->if_bluetooth = NULL; tester_setup_failed(); + return; } + status = data->if_bluetooth->enable(); if (status != BT_STATUS_SUCCESS) tester_setup_failed(); -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html