]> Git Repo - qemu.git/commit
sheepdog: fix confused return values
authorLiu Yuan <[email protected]>
Wed, 18 Feb 2015 03:57:55 +0000 (11:57 +0800)
committerKevin Wolf <[email protected]>
Tue, 10 Mar 2015 13:02:23 +0000 (14:02 +0100)
commit833a7cc36e63653641558ba27148076f9a32062f
treea0daafb1344b0547457472bfe45947d554794a63
parente0c59cc7608f84fcaddc827e05d38af8d10447a3
sheepdog: fix confused return values

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.

Cc: [email protected]
Cc: Markus Armbruster <[email protected]>
Cc: Kevin Wolf <[email protected]>
Cc: Stefan Hajnoczi <[email protected]>
Reported-by: Markus Armbruster <[email protected]>
Signed-off-by: Liu Yuan <[email protected]>
Message-id: 1424231875[email protected]
Signed-off-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/sheepdog.c
This page took 0.025652 seconds and 4 git commands to generate.