Return-Path: From: Andrzej Kaczmarek To: CC: Andrzej Kaczmarek Subject: [PATCH] android/socket: Fix calling cleanup with invalid pointer Date: Fri, 21 Feb 2014 14:58:49 +0100 Message-ID: <1392991129-23026-1-git-send-email-andrzej.kaczmarek@tieto.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- android/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/socket.c b/android/socket.c index 48a8746..e2da689 100644 --- a/android/socket.c +++ b/android/socket.c @@ -1151,7 +1151,7 @@ void bt_socket_unregister(void) for (ch = 0; ch <= RFCOMM_CHANNEL_MAX; ch++) if (servers[ch].rfsock) - cleanup_rfsock(&servers[ch]); + cleanup_rfsock(servers[ch].rfsock); memset(servers, 0, sizeof(servers)); -- 1.8.5.4