Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-7998 utils: fix fd lost
[fs/lustre-release.git]
/
lustre
/
utils
/
mount_utils.c
diff --git
a/lustre/utils/mount_utils.c
b/lustre/utils/mount_utils.c
index
15b0b30
..
7411577
100644
(file)
--- a/
lustre/utils/mount_utils.c
+++ b/
lustre/utils/mount_utils.c
@@
-422,6
+422,7
@@
int loop_setup(struct mkfs_opts *mop)
}
/* find or allocate a free loop device to use */
i = ioctl(ret, LOOP_CTL_GET_FREE);
+ close(ret);
if (i < 0) {
fprintf(stderr, "%s: access loop control error\n", progname);
return EACCES;