linux_dsm_epyc7002/drivers/media/cec
Lee Jones 43c0c03961 [media] cec: Fix runtime BUG when (CONFIG_RC_CORE && !CEC_CAP_RC)
Currently when the RC Core is enabled (reachable) core code located
in cec_register_adapter() attempts to populate the RC structure with
a pointer to the 'parent' passed in by the caller.

Unfortunately if the caller did not specify RC capability when calling
cec_allocate_adapter(), then there will be no RC structure to populate.

This causes a "NULL pointer dereference" error.

Fixes: f51e80804f ("[media] cec: pass parent device in register(), not allocate()")

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Cc: <stable@vger.kernel.org>      # for v4.10 and up
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-04-10 13:14:53 -03:00
..
cec-adap.c [media] cec: don't Feature Abort msgs from Unregistered 2017-03-22 11:15:55 -03:00
cec-api.c [media] cec: improve cec_transmit_msg_fh logging 2017-03-22 11:14:45 -03:00
cec-core.c [media] cec: Fix runtime BUG when (CONFIG_RC_CORE && !CEC_CAP_RC) 2017-04-10 13:14:53 -03:00
cec-priv.h [media] cec: move the CEC framework out of staging and to media 2016-11-16 15:40:20 -02:00
Makefile [media] cec: move the CEC framework out of staging and to media 2016-11-16 15:40:20 -02:00