Skip to contentSkip to conversation

X.25: Stop x25_destroy_socket timer looping

PATCH Applied [email protected] 2 participants 2 messages Oct 28, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 4/9 X.25: Stop x25_destroy_socket timer looping

From: Andrew Hendry <[email protected]>

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. This patch puts the sk_timer.data back.

---

 25-akpm/net/x25/af_x25.c |    1 +
 1 files changed, 1 insertion(+)
net/x25/af_x25.c renamed from net/x25/af_x25.c~x25-stop-x25_destroy_socket-timer-looping +1 -0
diff -puN net/x25/af_x25.c~x25-stop-x25_destroy_socket-timer-looping net/x25/af_x25.c
@@ -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 */

_

maintainer Applied
#1 lore raw
Quoted 8 lines · On Thu, 28 Oct 2004 00:19:42 -0700 [email protected] wrote:

From: Andrew Hendry <[email protected]>

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. This patch puts the sk_timer.data back.

Applied, thanks.