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:
ea8971f
)
usb: Check return value of umount ffs
86/298886/1
accepted/tizen_8.0_unified
tizen_8.0
accepted/tizen/8.0/unified/20231005.093800
accepted/tizen/unified/20230915.085422
tizen_8.0_m2_release
author
Seung-Woo Kim
<sw0312.kim@samsung.com>
Fri, 15 Sep 2023 00:44:59 +0000
(09:44 +0900)
committer
Seung-Woo Kim
<sw0312.kim@samsung.com>
Fri, 15 Sep 2023 00:45:02 +0000
(09:45 +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
03bcada
..
6eae41a
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);
}