No description
Find a file
Xia Fukun 4758d04014 drm/i915/bios: fix a memory leak in generate_lfp_data_ptrs
[ Upstream commit 1382901f75 ]

When (size != 0 || ptrs->lvds_ entries != 3), the program tries to
free() the ptrs. However, the ptrs is not created by calling kzmalloc(),
but is obtained by pointer offset operation.
This may lead to memory leaks or undefined behavior.

Fix this by replacing the arguments of kfree() with ptrs_block.

Fixes: a87d0a8476 ("drm/i915/bios: Generate LFP data table pointers if the VBT lacks them")
Signed-off-by: Xia Fukun <xiafukun@huawei.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221125063428.69486-1-xiafukun@huawei.com
(cherry picked from commit 7674cd0b7d)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:26:05 +01:00
arch
block
certs
crypto
Documentation ASoC: dt-bindings: wcd9335: fix reset line polarity in example 2022-12-31 13:26:04 +01:00
drivers drm/i915/bios: fix a memory leak in generate_lfp_data_ptrs 2022-12-31 13:26:05 +01:00
fs NFS: Fix an Oops in nfs_d_automount() 2022-12-31 13:26:05 +01:00
include
init
io_uring
ipc
kernel
lib
LICENSES
mm
net
samples
scripts
security
sound ASoC: mediatek: mt8173: Enable IRQ when pdata is ready 2022-12-31 13:26:05 +01:00
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
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.