aboutsummaryrefslogtreecommitdiff
path: root/lib/libufs/sblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libufs/sblock.c')
-rw-r--r--lib/libufs/sblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libufs/sblock.c b/lib/libufs/sblock.c
index 54e6234633e3..1d687d6d41aa 100644
--- a/lib/libufs/sblock.c
+++ b/lib/libufs/sblock.c
@@ -186,7 +186,7 @@ sbput(int devfd, struct fs *fs, int numaltwrite)
use_pwrite)) != 0) {
fs->fs_sblockactualloc = savedactualloc;
fs->fs_csp = savedcsp;
- return (-1);
+ return (error);
}
}
fs->fs_sblockactualloc = savedactualloc;