diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2018-09-09 19:02:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-21 11:25:56 +0300 |
commit | 2a55f0985d484c0f993021923aa5337404d845cd (patch) | |
tree | 6aa2eb2a2837f36356085e92b920cd8614dbc43d /arch/powerpc/boot/redboot-8xx.c | |
parent | 4bdf5ec12d3c655e5dbead42dd194c094bb6d7b5 (diff) | |
download | linux-2a55f0985d484c0f993021923aa5337404d845cd.tar.xz |
media: pci: cx23885: handle adding to list failure
[ Upstream commit c5d59528e24ad22500347b199d52b9368e686a42 ]
altera_hw_filt_init() which calls append_internal() assumes
that the node was successfully linked in while in fact it can
silently fail. So the call-site needs to set return to -ENOMEM
on append_internal() returning NULL and exit through the err path.
Fixes: 349bcf02e361 ("[media] Altera FPGA based CI driver module")
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc/boot/redboot-8xx.c')
0 files changed, 0 insertions, 0 deletions