Messages in this thread | | | From | Kees Cook <> | Subject | Re: [PATCH] pstore/ram: Fix error return code in ramoops_probe() | Date | Fri, 2 Dec 2022 15:20:29 -0800 |
| |
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
| |