ubifs: journal: Fix error return code in ubifs_jnl_write_inode()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 8 May 2021 03:33:13 +0000 (11:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:05:51 +0000 (16:05 +0200)
commit412ef737be65053e9695e17503aec8821102c067
treec8dd91eb0733ff0e51b87989f027a13489cf622a
parent6bcc0590cb919bb0c37b554afdaa929528f7bebc
ubifs: journal: Fix error return code in ubifs_jnl_write_inode()

[ Upstream commit a2c2a622d41168f9fea2aa3f76b9fbaa88531aac ]

Fix to return a negative error code from the error handling case instead
of 0, as done elsewhere in this function.

Fixes: 9ca2d7326444 ("ubifs: Limit number of xattrs per inode")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ubifs/journal.c