View | Details | Raw Unified
Collapse All | Expand All

(-) linux-2.4.27/net/unix/af_unix.c (-1 / +5 lines)
 Lines 1403-1411    Link Here 
	msg->msg_namelen = 0;
	msg->msg_namelen = 0;
	down(&sk->protinfo.af_unix.readsem);
	skb = skb_recv_datagram(sk, flags, noblock, &err);
	skb = skb_recv_datagram(sk, flags, noblock, &err);
	if (!skb)
	if (!skb)
		goto out;
		goto out_unlock;
	wake_up_interruptible(&sk->protinfo.af_unix.peer_wait);
	wake_up_interruptible(&sk->protinfo.af_unix.peer_wait);
 Lines 1449-1454    Link Here 
out_free:
out_free:
	skb_free_datagram(sk,skb);
	skb_free_datagram(sk,skb);
out_unlock:
	up(&sk->protinfo.af_unix.readsem);
out:
out:
	return err;
	return err;
}
}