Skip to content

Commit c86c3da

Browse files
authored
Merge pull request ceph#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>
2 parents f2b13d9 + 062108e commit c86c3da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rbd_ggate/ggate_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ int ggate_drv_create(char *name, size_t namelen, size_t sectorsize,
130130

131131
drv = calloc(1, sizeof(*drv));
132132
if (drv == NULL) {
133-
errno = -ENOMEM;
133+
errno = ENOMEM;
134134
goto fail_close;
135135
}
136136

0 commit comments

Comments
 (0)