The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)
Перейти к файлу
José Expósito f0f078457f media: uvcvideo: Fix memory leak in uvc_gpio_parse
Previously the unit buffer was allocated before checking the IRQ for
privacy GPIO. In case of error, the unit buffer was leaked.

Allocate the unit buffer after the IRQ to avoid it.

Addresses-Coverity-ID: 1474639 ("Resource leak")

Fixes: 2886477ff9 ("media: uvcvideo: Implement UVC_EXT_GPIO_UNIT")
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-08-30 16:04:19 +02:00
Documentation media: dt-bindings: media: renesas,vsp1: Document RZ/G2L VSPD bindings 2022-08-30 15:31:14 +02:00
LICENSES
arch xen: branch for v6.0-rc1b 2022-08-14 09:28:54 -07:00
block
certs
crypto
drivers media: uvcvideo: Fix memory leak in uvc_gpio_parse 2022-08-30 16:04:19 +02:00
fs take care to handle NULL ->proc_lseek() 2022-08-14 15:16:18 -04:00
include media: videobuf2: Remove vb2_find_timestamp() 2022-08-30 14:44:45 +02:00
init
io_uring
ipc
kernel xen: branch for v6.0-rc1b 2022-08-14 09:28:54 -07:00
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS media: MAINTAINERS: change tc358743 maintainer 2022-08-30 07:36:31 +02:00
Makefile Linux 6.0-rc1 2022-08-14 15:50:18 -07:00
README

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

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.