Benjamin Poirier 39cc86130b unix/dgram: fix peeking with an offset larger than data in queue
Currently, peeking on a unix datagram socket with an offset larger than len of
the data in the sk receive queue returns immediately with bogus data. That's
because *off is not reset between each skb_queue_walk().

This patch fixes this so that the behavior is the same as peeking with no
offset on an empty queue: the caller blocks.

Signed-off-by: Benjamin Poirier <bpoirier@suse.de>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-04-30 00:43:54 -04:00
..
2013-04-19 17:57:49 -04:00
2013-03-29 15:13:27 -04:00
2012-04-02 04:33:44 -04:00
2013-02-22 23:31:31 -05:00
2010-11-28 18:24:14 -08:00
2012-10-12 13:56:52 -04:00