From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> It is better to return here since dev is not allocated and assigned NULL value. --- android/pan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/pan.c b/android/pan.c index 4e04da0..adc5df7 100644 --- a/android/pan.c +++ b/android/pan.c @@ -439,7 +439,7 @@ static void nap_confirm_cb(GIOChannel *chan, gpointer data) if (err) { error("%s", err->message); g_error_free(err); - goto failed; + return; } DBG("incoming connect request from %s", address); -- 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