cec: fix system server crash for long time waiting

PD#138714: cec: fix system server crash in cec

Avoid too long check for physical address valid

Change-Id: Ia012c0f2b9901c39d0d71fd326df2828c2a2e991
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
This commit is contained in:
Tao Zeng
2017-03-30 15:56:28 +08:00
parent 4d8abe669c
commit 250993a36d

View File

@@ -882,7 +882,7 @@ int cec_ll_tx(const unsigned char *msg, unsigned char len)
mutex_lock(&cec_dev->cec_mutex);
/* make sure physical address is valid before send */
if (len >= 2 && msg[1] == CEC_OC_REPORT_PHYSICAL_ADDRESS)
check_physical_addr_valid(MAX_INT);
check_physical_addr_valid(20);
try_again:
reinit_completion(&cec_dev->tx_ok);