diff options
| author | Daniel De Graaf <[email protected]> | 2010-09-08 22:10:42 +0000 |
|---|---|---|
| committer | Jeremy Fitzhardinge <[email protected]> | 2010-09-09 00:48:22 +0000 |
| commit | 7808121b9a1e44ef12fecd49fa6c268f27a150fc (patch) | |
| tree | 5536cceff908e630d1a15c4f63abd7210ed4973b /drivers/net/xen-netback/interface.c | |
| parent | xenbus: add missing wakeup in concurrent read/write (diff) | |
| download | kernel-7808121b9a1e44ef12fecd49fa6c268f27a150fc.tar.gz kernel-7808121b9a1e44ef12fecd49fa6c268f27a150fc.zip | |
xenbus: avoid zero returns from read()
It is possible to get a zero return from read() in instances where the
queue is not empty but has no elements with data to deliver to the user.
Since a zero return from read is an error indicator, resume waiting or
return -EAGAIN (for a nonblocking fd) in this case.
Signed-off-by: Daniel De Graaf <[email protected]>
Signed-off-by: Jeremy Fitzhardinge <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
