projects
/
platform
/
core
/
system
/
storaged.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f17266a
)
block: Check return value of mnt_fs_get_srcpath
67/132867/1
accepted/tizen/unified/20170608.184603
submit/tizen/20170608.051314
author
pr.jung
<pr.jung@samsung.com>
Thu, 8 Jun 2017 04:58:59 +0000
(13:58 +0900)
committer
pr.jung
<pr.jung@samsung.com>
Thu, 8 Jun 2017 04:58:59 +0000
(13:58 +0900)
Change-Id: Ib5f35b3a5a0a8eba50d4add92fed9e65c6148b74
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/block/block.c
patch
|
blob
|
history
diff --git
a/src/block/block.c
b/src/block/block.c
index
28924d0
..
6fbab38
100644
(file)
--- a/
src/block/block.c
+++ b/
src/block/block.c
@@
-2199,6
+2199,9
@@
static int get_internal_storage_number(void)
return -EPERM;
}
temp = mnt_fs_get_srcpath(fs);
+ if (!temp)
+ return -EPERM;
+
name = strrchr(temp, '/');
if (!name)
return -EPERM;