The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)
Перейти к файлу
Ma Ke 6341c28567 pinctrl: single: fix potential NULL dereference in pcs_get_function()
commit 1c38a62f15e595346a1106025722869e87ffe044 upstream.

pinmux_generic_get_function() can return NULL and the pointer 'function'
was dereferenced without checking against NULL. Add checking of pointer
'function' in pcs_get_function().

Found by code review.

Cc: stable@vger.kernel.org
Fixes: 571aec4df5 ("pinctrl: single: Use generic pinmux helpers for managing functions")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Link: https://lore.kernel.org/20240808041355.2766009-1-make24@iscas.ac.cn
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-04 13:23:37 +02:00
Documentation arm64: cpufeature: Fix the visibility of compat hwcaps 2024-08-19 05:45:51 +02:00
LICENSES
arch KVM: arm64: Make ICC_*SGI*_EL1 undef in the absence of a vGICv3 2024-09-04 13:23:36 +02:00
block block: initialize integrity buffer to zero before writing it to media 2024-08-19 05:44:50 +02:00
certs
crypto crypto: aead,cipher - zeroize key buffer after use 2024-07-18 13:07:27 +02:00
drivers pinctrl: single: fix potential NULL dereference in pcs_get_function() 2024-09-04 13:23:37 +02:00
fs btrfs: run delayed iputs when flushing delalloc 2024-09-04 13:23:37 +02:00
include scsi: core: Fix the return value of scsi_logical_block_count() 2024-09-04 13:23:35 +02:00
init init/main.c: Fix potential static_command_line memory overflow 2024-04-27 17:05:28 +02:00
io_uring io_uring/io-wq: limit retrying worker initialisation 2024-08-19 05:45:22 +02:00
ipc ipc/sem: Fix dangling sem_array access in semtimedop race 2022-12-08 11:28:45 +01:00
kernel hrtimer: Prevent queuing of hrtimer without a function callback 2024-09-04 13:23:28 +02:00
lib bitmap: introduce generic optimized bitmap_size() 2024-09-04 13:23:16 +02:00
mm mm/numa: no task_numa_fault() call if PTE is changed 2024-09-04 13:23:37 +02:00
net Bluetooth: MGMT: Add error handling to pair_device() 2024-09-04 13:23:35 +02:00
samples Add gitignore file for samples/fanotify/ subdirectory 2024-07-27 10:46:16 +02:00
scripts kbuild: Fix '-S -c' in x86 stack protector scripts 2024-08-19 05:45:16 +02:00
security selinux: fix potential counting error in avc_add_xperms_decision() 2024-09-04 13:23:17 +02:00
sound ALSA: timer: Relax start tick time check for slave timer elements 2024-09-04 13:23:36 +02:00
tools tools: move alignment-related macros to new <linux/align.h> 2024-09-04 13:23:37 +02:00
usr
virt KVM: Always flush async #PF workqueue when vCPU is being destroyed 2024-04-10 16:18:34 +02:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS trace: Relocate event helper files 2024-04-10 16:19:24 +02:00
Makefile Linux 5.15.165 2024-08-19 05:45:52 +02: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.