From: Benjamin Poirier Date: Mon, 29 Apr 2013 11:42:14 +0000 (+0000) Subject: unix/stream: 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 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79f632c71bea0d0864d84d6a4ce78da5a9430f5b;p=pandora-kernel.git unix/stream: fix peeking with an offset larger than data in queue Currently, peeking on a unix stream socket with an offset larger than len of the data in the sk receive queue returns immediately with bogus data. 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