diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2024-09-09 11:15:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 11:15:10 +0200 |
commit | c86c3daa268d2244ac559830495d980279e32879 (patch) | |
tree | 76050869035742a5b1b6f3d313ac612d61d8c8b4 /src/tools | |
parent | Merge pull request #59000 from connorfawcett/rbd-random (diff) | |
parent | tools/rbd_ggate: fix sign of errno (diff) | |
download | ceph-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.c | 2 |
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; } |