Patch "[media] cec: fix wrong last_la determination" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
[media] cec: fix wrong last_la determination
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
cec-fix-wrong-last_la-determination.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Jun 15 13:06:48 CEST 2017
From: Hans Verkuil <[email protected]>
Date: Tue, 10 Jan 2017 09:44:54 -0200
Subject: [media] cec: fix wrong last_la determination
From: Hans Verkuil <[email protected]>
[ Upstream commit f9f96fc10c09ca16e336854c08bc1563eed97985 ]
Due to an incorrect condition the last_la used for the initial attempt at claiming a logical address could be wrong.
The last_la wasn't converted to a mask when ANDing with type2mask, so that test was broken.
--- drivers/staging/media/cec/cec-adap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/cec/cec-adap.c +1 -1
@@ -1017,7 +1017,7 @@ static int cec_config_thread_func(void * las->log_addr[i] =CEC_LOG_ADDR_INVALID ;if (last_la ==CEC_LOG_ADDR_INVALID || last_la ==CEC_LOG_ADDR_UNREGISTERED || - !(last_la & type2mask[type])) + !((1 << last_la) & type2mask[type])) last_la = la_list[0 ]; err =cec_config_log_addr (adap, i, last_la);
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/cec-fix-wrong-last_la-determination.patch