]> git.baikalelectronics.ru Git - kernel.git/commit
media: pci: cx23885: handle adding to list failure
authorNicholas Mc Guire <hofrat@osadl.org>
Sun, 9 Sep 2018 16:02:32 +0000 (12:02 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Sep 2018 13:32:56 +0000 (09:32 -0400)
commitf06d95f5eba40e7b5dc347826b017d944d16af4e
tree98b25f660450d51ee89b1a04538259a0d6ccfd01
parentacc842025416bac6e11378a4b620f802cc884354
media: pci: cx23885: handle adding to list failure

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: 6b87e653c0d1 ("[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>
drivers/media/pci/cx23885/altera-ci.c