UBIFS: fix error path in create_default_filesystem()
authorhujianyang <hujianyang@huawei.com>
Wed, 11 Jun 2014 02:38:45 +0000 (10:38 +0800)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sat, 19 Jul 2014 06:53:52 +0000 (09:53 +0300)
commit6dcfb80264be6f83240450428ead88cacadef2cd
tree63d696b24eb5fab100066cf8ff8e9740ee31f246
parentf2b6521aa11771e87f7357f1d5ceff8165fa0585
UBIFS: fix error path in create_default_filesystem()

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