media: cec: avoid decrementing transmit_queue_sz if it is 0
Hans Verkuil authored
commit 95c29d46

 upstream.

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: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: <stable@vger.kernel.org>      # for v4.12 and up
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
26e5eab9
Name Last commit Last update
Documentation USB: documentation: flags on usb-storage versus UAS
arch MIPS: Avoid VDSO ABI breakage due to global register variable
block blk-mq: make sure that line break can be printed
certs Replace magic for trusting the secondary keyring with #define
crypto crypto: user - fix memory leak in crypto_report
drivers media: cec: avoid decrementing transmit_queue_sz if it is 0
firmware License cleanup: add SPDX GPL-2.0 license identifier to files with no license
fs xfs: fix mount failure crash on invalid iclog memory access
include nvme_fc: add module to ops template to allow module references
init fork: fix some -Wmissing-prototypes warnings
ipc ipc/mqueue.c: only perform resource calculation if user valid
kernel taskstats: fix data-race
lib dma-debug: add a schedule point in debug_dma_dump_mappings()
mm mm/shmem.c: cast the type of unmap_start to u64
net net: make socket read/write_iter() honor IOCB_NOWAIT
samples samples: pktgen: fix proc_cmd command result check logic
scripts scripts/kallsyms: fix definitely-lost memory leak
security apparmor: fix unsigned len comparison with less than zero
sound ALSA: ice1724: Fix sleep-in-atomic in Infrasonic Quartet support code
tools perf strbuf: Remove redundant va_end() in strbuf_addv()
usr kbuild: clean compressed initramfs image
virt KVM: arm/arm64: vgic: Don't rely on the wrong pending table
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore kbuild: rpm-pkg: keep spec file until make mrproper
.mailmap .mailmap: Add Maciej W. Rozycki's Imagination e-mail address
COPYING [PATCH] update FSF address in COPYING
CREDITS MAINTAINERS: update TPM driver infrastructure changes
Kbuild License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license
MAINTAINERS USB: rio500: Remove Rio 500 kernel driver
Makefile Linux 4.14.162
README README: add a new README file, pointing to the Documentation/
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.