netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] X.25 Add missing sock_put in x25_receive_data
@ 2007-01-08 22:32 ahendry
  2007-01-16  3:28 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: ahendry @ 2007-01-08 22:32 UTC (permalink / raw)
  To: linux-x25, eis; +Cc: linux-kernel, netdev


__x25_find_socket does a sock_hold.
This adds a missing sock_put in x25_receive_data.

Signed-off-by: Andrew Hendry <andrew.hendry@gmail.com>

--- linux-2.6.19-vanilla/net/x25/x25_dev.c	2006-12-31 22:31:07.000000000 +1100
+++ linux-2.6.19/net/x25/x25_dev.c	2007-01-06 16:40:54.000000000 +1100
@@ -56,6 +56,7 @@ static int x25_receive_data(struct sk_bu
 			sk_add_backlog(sk, skb);
 		}
 		bh_unlock_sock(sk);
+		sock_put(sk);
 		return queued;
 	}


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-16  3:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-08 22:32 [PATCH] X.25 Add missing sock_put in x25_receive_data ahendry
2007-01-16  3:28 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).