From: Daniel De Graaf Date: Wed, 8 Sep 2010 22:10:42 +0000 (-0400) Subject: xenbus: avoid zero returns from read() X-Git-Tag: v2.6.38-rc2~22^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7808121b9a1e44ef12fecd49fa6c268f27a150fc;p=pandora-kernel.git 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 Signed-off-by: Jeremy Fitzhardinge --- Reading git-diff-tree failed