[sheepdog] [Qemu-devel] [PATCH] sheepdog: fix confused return values

Markus Armbruster armbru at redhat.com
Wed Feb 18 09:35:07 CET 2015

Liu Yuan <namei.unix at gmail.com> writes:

> From: Liu Yuan <liuyuan at cmss.chinamobile.com>
> These functions mix up -1 and -errno in return values and would might cause
> trouble error handling in the call chain.
> This patch let them return -errno and add some comments.
> Reported-by: Markus Armbruster <armbru at redhat.com>
> Signed-off-by: Liu Yuan <liuyuan at cmss.chinamobile.com>

Did you review all functions returning negative errno, or just the two
that caught my eye?

More information about the sheepdog mailing list