diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2019-12-08 01:48:09 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2019-12-13 13:22:10 +0300 |
commit | 95c29d46ab2a517e4c26d0a07300edca6768db17 (patch) | |
tree | 5ede0da3b7a4d38a76b75f15880e5e21432a904a /scripts/bpf_helpers_doc.py | |
parent | cec935ce69fc386f13959578deb40963ebbb85c3 (diff) | |
download | linux-95c29d46ab2a517e4c26d0a07300edca6768db17.tar.xz |
media: cec: avoid decrementing transmit_queue_sz if it is 0
WARN if transmit_queue_sz is 0 but do not decrement it.
The CEC adapter will become unresponsive if it goes below
0 since then it thinks there are 4 billion messages in the
queue.
Obviously this should not happen, but a driver bug could
cause this.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: <stable@vger.kernel.org> # for v4.12 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions