Skip to contentSkip to conversation

X.25 Add missing sock_put in x25_receive_data

PATCH Applied ahendry 2 participants 2 messages Jan 8, 2007 – Jan 16, 2007

Subsystems (3)
lore
Share & tools
lore

ahendry

author
#0 lore raw

PATCH 1/1 X.25 Add missing sock_put in x25_receive_data

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

net/x25/x25_dev.c +1 -0
@@ -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;
 	}