]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: cec: core: remove length check of Timer Status
authorNini Song <nini.song@mediatek.com>
Thu, 25 Jan 2024 13:28:45 +0000 (21:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 09:19:26 +0000 (11:19 +0200)
commit7611722dc5dde3b08a759199c6e25fcb5a02b401
tree52bff6d3a6b0bdbeb0515fda3162ee799468fb80
parent9fdfeef4c5419e1d6d952cd788d6714d2734f7c1
media: cec: core: remove length check of Timer Status

commit ce5d241c3ad4568c12842168288993234345c0eb upstream.

The valid_la is used to check the length requirements,
including special cases of Timer Status. If the length is
shorter than 5, that means no Duration Available is returned,
the message will be forced to be invalid.

However, the description of Duration Available in the spec
is that this parameter may be returned when these cases, or
that it can be optionally return when these cases. The key
words in the spec description are flexible choices.

Remove the special length check of Timer Status to fit the
spec which is not compulsory about that.

Signed-off-by: Nini Song <nini.song@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/cec/core/cec-adap.c