Re: [PATCH] pstore/ram: Fix error return code in ramoops_probe()

From: Kees Cook
Date: Fri Dec 02 2022 - 18:20:38 EST


On Fri, 2 Dec 2022 16:22:54 +0800, Wang Yufen wrote:
> In the if (dev_of_node(dev) && !pdata) path, the "err" may be assigned a
> value of 0, so the error return code -EINVAL may be incorrectly set
> to 0. To fix set valid return code before calling to goto.
>
>

Applied to for-next/pstore, thanks!

[1/1] pstore/ram: Fix error return code in ramoops_probe()
https://git.kernel.org/kees/c/e1fce564900f

--
Kees Cook