UBIFS: fix error handling in dump_lpt_leb()
authorhujianyang <hujianyang@huawei.com>
Wed, 11 Jun 2014 02:40:10 +0000 (10:40 +0800)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sat, 19 Jul 2014 06:53:51 +0000 (09:53 +0300)
commit5a95741a574f69c8219d3164d1fbf1c855566afe
treed162ae6e5ccd57731a3801e83483ba6d9ba51fe2
parent033ead8230c2cf9cdc2d6e1148bfdf5674012a9c
UBIFS: fix error handling in dump_lpt_leb()

This patch checks the return value of 'ubifs_unpack_nnode()'.
If this function returns an error, 'nnode' may not be
initialized, so just print an error message and break.

Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
fs/ubifs/lpt_commit.c