summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorWang Yufen <wangyufen@huawei.com>2022-12-02 16:22:54 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-14 10:15:14 +0100
commitd1b3164d0e11a2849c22822cfc606eda34e24c36 (patch)
treee97e7388187f13da9c04ecef08d7af32f4ae6c09 /lib/debugobjects.c
parent4dad729f7c24b8cbe72012f7d4ff332047a7073d (diff)
pstore/ram: Fix error return code in ramoops_probe()
[ Upstream commit e1fce564900f8734edf15b87f028c57e14f6e28d ] 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 <wangyufen@huawei.com> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/1669969374-46582-1-git-send-email-wangyufen@huawei.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions