diff mbox series

Raw Handler: fix umount path after commit ff1fa4f

Message ID 20231004080705.16551-1-stefano.babic@swupdate.org
State Accepted
Delegated to: Stefano Babic
Headers show
Series Raw Handler: fix umount path after commit ff1fa4f | expand

Commit Message

Stefano Babic Oct. 4, 2023, 8:07 a.m. UTC
Commit reported above eavluates return value from mount, but forget to
add paranthesys in the context.

Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
CC: Lukas Funke <lukas.funke@weidmueller.com>
---
 handlers/raw_handler.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/handlers/raw_handler.c b/handlers/raw_handler.c
index cc0431e5..18195dfb 100644
--- a/handlers/raw_handler.c
+++ b/handlers/raw_handler.c
@@ -244,10 +244,11 @@  cleanup:
 	if (fdout > 0)
 		close(fdout);
 
-	if (use_mount)
+	if (use_mount) {
 		ret = swupdate_umount(DATADST_DIR);
 		if (ret)
 			WARN("Can't unmount path %s: %s", DATADST_DIR, strerror(errno));
+	}
 
 	return ret;
 }