diff options
| author | Wang Yufen <[email protected]> | 2022-12-02 16:22:54 +0800 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2022-12-02 15:16:59 -0800 |
| commit | e1fce564900f8734edf15b87f028c57e14f6e28d (patch) | |
| tree | 00714580ad5cf505aa742ce857dd6a77a451148b /drivers/pwm/pwm-atmel.c | |
| parent | 38b91847c314f49c80e30062549d4709a3754ea6 (diff) | |
pstore/ram: Fix error return code in ramoops_probe()
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.
Fixes: 35da60941e44 ("pstore/ram: add Device Tree bindings")
Signed-off-by: Wang Yufen <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/pwm/pwm-atmel.c')
0 files changed, 0 insertions, 0 deletions