]> git.baikalelectronics.ru Git - 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)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Dec 2017 13:01:01 +0000 (08:01 -0500)
commit06803e677d649515924dda0a086afd9c289b35d8
treea49c2f9bfe8c78ee4fc3c45fa6aaef171e14e766
parent80c66f3c5e01329d5a369d168f4f654d04e85f6b
media: c8sectpfe: fix potential NULL pointer dereference in c8sectpfe_timer_interrupt

_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: b754abbeb59e ("[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>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c