Go to file
Prashanth K c3a7725402 usb: gadget: Check bmAttributes only if configuration is valid
commit 8e812e9355a6f14dffd54a33d951ca403b9732f5 upstream.

If the USB configuration is not valid, then avoid checking for
bmAttributes to prevent null pointer deference.

Cc: stable <stable@kernel.org>
Fixes: 40e89ff5750f ("usb: gadget: Set self-powered based on MaxPower and bmAttributes")
Signed-off-by: Prashanth K <prashanth.k@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250224085604.417327-1-prashanth.k@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-03-13 12:51:09 +01:00
arch x86/sgx: Fix size overflows in sgx_encl_create() 2025-03-13 12:51:06 +01:00
block block: fix conversion of GPT partition name to 7-bit 2025-03-13 12:51:03 +01:00
certs
crypto crypto: testmgr - some more fixes to RSA test vectors 2025-03-13 12:50:48 +01:00
Documentation kfence: allow use of a deferrable timer 2025-03-13 12:50:49 +01:00
drivers usb: gadget: Check bmAttributes only if configuration is valid 2025-03-13 12:51:09 +01:00
fs exfat: fix soft lockup in exfat_clear_bitmap 2025-03-13 12:51:07 +01:00
include vmlinux.lds: Ensure that const vars with relocations are mapped R/O 2025-03-13 12:51:00 +01:00
init initramfs: avoid filename buffer overrun 2024-12-14 19:50:42 +01:00
io_uring io_uring: fix possible deadlock in io_register_iowq_max_workers() 2024-11-17 15:06:25 +01:00
ipc
kernel sched/fair: Fix potential memory corruption in child_cfs_rq_on_list 2025-03-13 12:51:07 +01:00
lib kfence: allow use of a deferrable timer 2025-03-13 12:50:49 +01:00
LICENSES
mm mm: don't skip arch_sync_kernel_mappings() in error paths 2025-03-13 12:51:03 +01:00
net net: ipv6: fix missing dst ref drop in ila lwtunnel 2025-03-13 12:51:07 +01:00
samples samples/landlock: Fix possible NULL dereference in parse_path() 2025-03-13 12:49:57 +01:00
scripts kbuild: Move -Wenum-enum-conversion to W=2 2025-03-13 12:50:29 +01:00
security tomoyo: don't emit warning in tomoyo_write_control() 2025-03-13 12:50:18 +01:00
sound ALSA: usx2y: validate nrpacks module parameter on probe 2025-03-13 12:51:05 +01:00
tools selftests: rtnetlink: update netdevsim ipsec output format 2025-03-13 12:50:46 +01:00
usr
virt KVM: Fix a data race on last_boosted_vcpu in kvm_vcpu_on_spin() 2024-10-22 15:40:41 +02:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore Remove *.orig pattern from .gitignore 2024-10-17 15:11:10 +02:00
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS trace: Relocate event helper files 2024-04-10 16:19:24 +02:00
Makefile Linux 5.15.178 2025-02-01 18:24:02 +01:00
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.