]> git.baikalelectronics.ru Git - kernel.git/commit
ubifs: Fix error return code in alloc_wbufs()
authorWang ShaoBo <bobo.shaobowang@huawei.com>
Sun, 15 Nov 2020 08:23:43 +0000 (16:23 +0800)
committerRichard Weinberger <richard@nod.at>
Sat, 13 Feb 2021 21:58:44 +0000 (22:58 +0100)
commit3e603ac9f553f59520d0dd170e8fb175677446fb
tree2827b358fa5fca1f1936931ca83ee22e1672005c
parentadbb5a6f00a4dc8d371f73be5ae4ec5dfe564aec
ubifs: Fix error return code in alloc_wbufs()

Fix to return PTR_ERR() error code from the error handling case instead
fo 0 in function alloc_wbufs(), as done elsewhere in this function.

Fixes: c22a25eec8da ("ubifs: Add authentication nodes to journal")
Signed-off-by: Wang ShaoBo <bobo.shaobowang@huawei.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/super.c