Skip to contentSkip to conversation

master - dmfilemapd: pass correct dirp to closedir()

PATCH Bryn Reeves 1 participant 1 message Mar 29, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b5252a51a5d041a94e712d804a506e94c9a68893
Commit:        b5252a51a5d041a94e712d804a506e94c9a68893
Parent:        481a522dd76baaa36b9e903dcd23d66be0b6754a
Author:        Bryn M. Reeves <[email protected]>
AuthorDate:    Wed Mar 29 16:54:44 2017 +0100
Committer:     Bryn M. Reeves <[email protected]>
CommitterDate: Wed Mar 29 16:54:44 2017 +0100

dmfilemapd: pass correct dirp to closedir()

---
 daemons/dmfilemapd/dmfilemapd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
daemons/dmfilemapd/dmfilemapd.c +2 -2
index dec74ec..fae6a10 100644
@@ -229,13 +229,13 @@ static int _is_open(const char *path)
 		if (!pid)
 			continue;
 		if (_is_open_in_pid(pid, path)) {
-			if (closedir(pid_d))
+			if (closedir(proc_d))
 				log_sys_error("closedir", DEFAULT_PROC_DIR);
 			return 1;
 		}
 	}
 
-	if (closedir(pid_d))
+	if (closedir(proc_d))
 		log_sys_error("closedir", DEFAULT_PROC_DIR);
 
 	return 0;