diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2018-09-09 12:02:32 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-21 09:27:38 +0100 |
commit | 1664dd1fbd0f8c0d7aa5c834311b7bcd83b625bc (patch) | |
tree | d4cdcb2772b8e9af42e0668fb87a4281d974d9ed /arch/mips/kernel/crash.c | |
parent | f79cc6a2b86d46bd7f0a689e9c891d25c8588112 (diff) |
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/mips/kernel/crash.c')
0 files changed, 0 insertions, 0 deletions