]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 20 Sep 2021 13:40:15 +0000 (15:40 +0200)
commit11ea53dc387a1a86f9068d760f0c058017630c1e
tree95b23d737695d8a66227812ac0a8e62381a0d08c
parent8eaed46584f35a9475c1ec738067426e6a73cbe7
ubifs: journal: Fix error return code in ubifs_jnl_write_inode()

BugLink: https://bugs.launchpad.net/bugs/1939738
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/ubifs/journal.c