View | Details | Raw Unified
Collapse All | Expand All

(-) linux-2.6.9/net/unix/af_unix.c (-1 / +5 lines)
 Lines 1535-1543    Link Here 
	msg->msg_namelen = 0;
	msg->msg_namelen = 0;
	down(&u->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(&u->peer_wait);
	wake_up_interruptible(&u->peer_wait);
 Lines 1587-1592    Link Here 
out_free:
out_free:
	skb_free_datagram(sk,skb);
	skb_free_datagram(sk,skb);
out_unlock:
	up(&u->readsem);
out:
out:
	return err;
	return err;
}
}