summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2024-09-09 11:15:10 +0200
committerGitHub <noreply@github.com>2024-09-09 11:15:10 +0200
commitc86c3daa268d2244ac559830495d980279e32879 (patch)
tree76050869035742a5b1b6f3d313ac612d61d8c8b4 /src/tools
parentMerge pull request #59000 from connorfawcett/rbd-random (diff)
parenttools/rbd_ggate: fix sign of errno (diff)
downloadceph-c86c3daa268d2244ac559830495d980279e32879.tar.xz
ceph-c86c3daa268d2244ac559830495d980279e32879.zip
Merge pull request #59657 from eriksjolund/fix-sign-of-errno
tools/rbd_ggate: fix sign of errno Reviewed-by: Mykola Golub <mgolub@suse.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'src/tools')
-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;
}