diff options
Diffstat (limited to 'xlators/storage/bd/src/bd.c')
-rw-r--r-- | xlators/storage/bd/src/bd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/storage/bd/src/bd.c b/xlators/storage/bd/src/bd.c index 6ea18e7787b..85372f072ed 100644 --- a/xlators/storage/bd/src/bd.c +++ b/xlators/storage/bd/src/bd.c @@ -693,7 +693,8 @@ out: GF_FREE (devpath); if (ret) { - close (_fd); + if (_fd >= 0) + close (_fd); GF_FREE (bd_fd); } |