projects
/
platform
/
core
/
system
/
initrd-flash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b407cee
)
usb: Check return value of umount ffs
accepted/tizen_7.0_unified
tizen_7.0
accepted/tizen/7.0/unified/20240202.171303
author
Seung-Woo Kim
<sw0312.kim@samsung.com>
Fri, 15 Sep 2023 00:44:59 +0000
(09:44 +0900)
committer
Dongwoo Lee
<dwoo08.lee@samsung.com>
Fri, 2 Feb 2024 05:52:43 +0000
(14:52 +0900)
Check return value of umount usb ffs to remove unchecked return
value.
Change-Id: Ib4016046783a7724612baee9a158c922da0e9f3e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
src/usb.c
patch
|
blob
|
history
diff --git
a/src/usb.c
b/src/usb.c
index 03bcadac5f6945287c10e1adc265d409af5af8f5..6eae41a7b4389036a744c369bc2582c8e5f30764 100644
(file)
--- a/
src/usb.c
+++ b/
src/usb.c
@@
-396,7
+396,12
@@
static int mount_ffs(void)
static void umount_ffs(void)
{
- umount(TFMFFS_PATH);
+ int ret;
+
+ ret = umount(TFMFFS_PATH);
+ if (ret < 0)
+ fprintf(stderr, "Failed to unmount usb ffs\n");
+
rmdir(TFMFFS_PATH);
}