summaryrefslogtreecommitdiff
path: root/drivers/watchdog/da9052_wdt.c
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.de>2013-04-29 11:42:14 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-04-30 04:43:54 (GMT)
commit79f632c71bea0d0864d84d6a4ce78da5a9430f5b (patch)
tree4a2aecd119c9c54944182ba665ad8279232e40ab /drivers/watchdog/da9052_wdt.c
parent39cc86130bc045d87f525ce7742da308ff757cec (diff)
downloadlinux-fsl-qoriq-79f632c71bea0d0864d84d6a4ce78da5a9430f5b.tar.xz
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 <bpoirier@suse.de> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/watchdog/da9052_wdt.c')
0 files changed, 0 insertions, 0 deletions