diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2019-12-07 23:48:09 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2019-12-13 09:02:39 +0100 |
commit | 4be77174c3fafc450527a0c383bb2034d2db6a2d (patch) | |
tree | d1dccdc7ffee7379ef9dead3adc2da39aa348c73 /net/dcb | |
parent | 01d4fb115470e9f88a58975fe157a9e8b214dfe5 (diff) |
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 'net/dcb')
0 files changed, 0 insertions, 0 deletions