From: Benjamin Poirier Date: Mon, 29 Apr 2013 11:42:13 +0000 (+0000) Subject: unix/dgram: fix peeking with an offset larger than data in queue X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~77^2~15^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39cc86130bc045d87f525ce7742da308ff757cec;p=pandora-kernel.git 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 Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed