diff options
author | Benjamin Poirier <[email protected]> | 2013-04-29 11:42:14 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2013-04-30 00:43:54 -0400 |
commit | 79f632c71bea0d0864d84d6a4ce78da5a9430f5b (patch) | |
tree | 4a2aecd119c9c54944182ba665ad8279232e40ab /drivers/message/fusion/lsi/mpi_raid.h | |
parent | 39cc86130bc045d87f525ce7742da308ff757cec (diff) |
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 <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_raid.h')
0 files changed, 0 insertions, 0 deletions