* [PATCH] android/socket: Fix calling cleanup with invalid pointer
@ 2014-02-21 13:58 Andrzej Kaczmarek
2014-02-21 14:30 ` Szymon Janc
0 siblings, 1 reply; 2+ messages in thread
From: Andrzej Kaczmarek @ 2014-02-21 13:58 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Andrzej Kaczmarek
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] android/socket: Fix calling cleanup with invalid pointer
2014-02-21 13:58 [PATCH] android/socket: Fix calling cleanup with invalid pointer Andrzej Kaczmarek
@ 2014-02-21 14:30 ` Szymon Janc
0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2014-02-21 14:30 UTC (permalink / raw)
To: Andrzej Kaczmarek; +Cc: linux-bluetooth
Hi Andrzej,
On Friday 21 of February 2014 14:58:49 Andrzej Kaczmarek wrote:
> ---
> 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));
>
Pushed, thanks.
--
Best regards,
Szymon Janc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-21 14:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-21 13:58 [PATCH] android/socket: Fix calling cleanup with invalid pointer Andrzej Kaczmarek
2014-02-21 14:30 ` Szymon Janc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox