]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: c8sectpfe: fix potential NULL pointer dereference in c8sectpfe_timer_interrupt
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 20 Nov 2017 14:00:55 +0000 (09:00 -0500)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Mon, 26 Mar 2018 12:16:19 +0000 (09:16 -0300)
commita2b2b4cd726c57ea838376c4306068cea28418a7
tree15845c6c9cf67f4006371adb46eff72b316a0292
parent1a50fa18095f64e9c519f921445a24a226f3ac1a
media: c8sectpfe: fix potential NULL pointer dereference in c8sectpfe_timer_interrupt

BugLink: http://bugs.launchpad.net/bugs/1758886
[ Upstream commit baed3c4bc4c13de93e0dba0a26d601411ebcb389 ]

_channel_ is being dereferenced before it is null checked, hence there is a
potential null pointer dereference. Fix this by moving the pointer dereference
after _channel_ has been null checked.

This issue was detected with the help of Coccinelle.

Fixes: c5f5d0f99794 ("[media] c8sectpfe: STiH407/10 Linux DVB demux support")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c