Patrick Rudolph (siro@das-labor.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14508
-gerrit
commit 8dfcb598b22f89115624c679f5b4522699db5101 Author: Patrick Rudolph siro@das-labor.org Date: Mon Apr 25 12:19:39 2016 +0200
qemu-0.15.x/serialice-com: Return errors in read function
On error return -1 to calling function. Allows calling function to handle errors.
Change-Id: I168093eaad897f2998c055e46acd88fe6a263947 Signed-off-by: Patrick Rudolph siro@das-labor.org --- qemu-0.15.x/serialice-com.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qemu-0.15.x/serialice-com.c b/qemu-0.15.x/serialice-com.c index ee539f4..470c76a 100644 --- a/qemu-0.15.x/serialice-com.c +++ b/qemu-0.15.x/serialice-com.c @@ -91,7 +91,7 @@ static int serialice_read(SerialICEState * state, void *buf, size_t nbyte) }
if (ret == -1) { - break; + return -1; } #endif