projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b6521
)
UBIFS: fix error path in create_default_filesystem()
author
hujianyang
<hujianyang@huawei.com>
Wed, 11 Jun 2014 02:38:45 +0000
(10:38 +0800)
committer
Artem Bityutskiy
<artem.bityutskiy@linux.intel.com>
Sat, 19 Jul 2014 06:53:52 +0000
(09:53 +0300)
In the end of 'create_default_filesystem()' we need to check
the return value of 'ubifs_write_node()' to ensure that we have
successfully written the 'cs_node'.
Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
fs/ubifs/sb.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ubifs/sb.c
b/fs/ubifs/sb.c
index c2c3d13efa1c57b8c9bc45bf938f20d4eaf0d9d1..79c6dbbc0e04ddacc39aaa57e726314971c4e65b 100644
(file)
--- a/
fs/ubifs/sb.c
+++ b/
fs/ubifs/sb.c
@@
-332,6
+332,8
@@
static int create_default_filesystem(struct ubifs_info *c)
cs->ch.node_type = UBIFS_CS_NODE;
err = ubifs_write_node(c, cs, UBIFS_CS_NODE_SZ, UBIFS_LOG_LNUM, 0);
kfree(cs);
+ if (err)
+ return err;
ubifs_msg("default file-system created");
return 0;