summaryrefslogtreecommitdiffstats
path: root/src/tools/rbd_ggate/ggate_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rbd_ggate/ggate_drv.c')
-rw-r--r--src/tools/rbd_ggate/ggate_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rbd_ggate/ggate_drv.c b/src/tools/rbd_ggate/ggate_drv.c
index 11f6cf0a466..813faf34c57 100644
--- a/src/tools/rbd_ggate/ggate_drv.c
+++ b/src/tools/rbd_ggate/ggate_drv.c
@@ -130,7 +130,7 @@ int ggate_drv_create(char *name, size_t namelen, size_t sectorsize,
drv = calloc(1, sizeof(*drv));
if (drv == NULL) {
- errno = -ENOMEM;
+ errno = ENOMEM;
goto fail_close;
}