Linux X.25 subsystem development
 help / color / mirror / Atom feed
* [PATCH TRIVIAL 2.6.8.1] X.25 : Stop x25_destroy_socket timer looping
@ 2004-10-25  0:10 Andrew Hendry
  0 siblings, 0 replies; only message in thread
From: Andrew Hendry @ 2004-10-25  0:10 UTC (permalink / raw)
  To: linux-x25, eis; +Cc: trivial, linux-kernel


The sk_timer.data for the x.25 destroy_socket timer went missing at some
stage, causing a timer loop where x25_destroy_socket would keep setting
up timers to call itself.

Signed-off-by: Andrew Hendry <ahendry@tusc.com.au>


diff -up linux-2.6.8.1/net/x25/af_x25.c.orig
linux-2.6.8.1/net/x25/af_x25.c
--- linux-2.6.8.1/net/x25/af_x25.c.orig 2004-10-25 08:49:40.780391664
+1000
+++ linux-2.6.8.1/net/x25/af_x25.c      2004-10-25 09:08:22.797819088
+1000
@@ -347,6 +347,7 @@ void x25_destroy_socket(struct sock *sk)
                /* Defer: outstanding buffers */
                sk->sk_timer.expires  = jiffies + 10 * HZ;
                sk->sk_timer.function = x25_destroy_timer;
+               sk->sk_timer.data = (unsigned long)sk;
                add_timer(&sk->sk_timer);
        } else {
                /* drop last reference so sock_put will free */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-25  0:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-25  0:10 [PATCH TRIVIAL 2.6.8.1] X.25 : Stop x25_destroy_socket timer looping Andrew Hendry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox