Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: pci: cx23885: handle adding to list failure
[ Upstream commit c5d5952 ] 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: 349bcf0 ("[media] Altera FPGA based CI driver module") Signed-off-by: Nicholas Mc Guire <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information