ChangeSet 1.2322, 2005/03/31 11:27:34-08:00, [EMAIL PROTECTED]

        [PATCH] Fix incorrect bluetooth socket zapping
        
        On Tue, 2005-03-15 at 22:50 +0000, Linux Kernel Mailing List wrote:
        > -       parent->sk_zapped = 1;
        > +       sock_set_flag(sk, SOCK_ZAPPED);
        
        Er, no. That zapped the wrong socket.
        
        Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 sco.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/net/bluetooth/sco.c b/net/bluetooth/sco.c
--- a/net/bluetooth/sco.c       2005-03-31 18:07:40 -08:00
+++ b/net/bluetooth/sco.c       2005-03-31 18:07:40 -08:00
@@ -349,7 +349,7 @@
        }
 
        parent->sk_state  = BT_CLOSED;
-       sock_set_flag(sk, SOCK_ZAPPED);
+       sock_set_flag(parent, SOCK_ZAPPED);
 }
 
 /* Kill socket (only if zapped and orphan)
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to