linux-yocto/arch/loongarch/kernel
Tao Cui 2605cf8785 LoongArch: Check the return value when creating kobj
commit 51adb03e6b865c0c6790f29659ff52d56742de2e upstream.

Add a check for the return value of kobject_create_and_add(), to ensure
that the kobj allocation succeeds for later use.

Cc: stable@vger.kernel.org
Signed-off-by: Tao Cui <cuitao@kylinos.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-25 10:58:52 +02:00
..
.gitignore
access-helper.h LoongArch: Add exception/interrupt handling 2022-06-03 20:09:28 +08:00
acpi.c LoongArch: Eliminate superfluous get_numa_distances_cnt() 2025-04-25 10:44:01 +02:00
asm-offsets.c LoongArch changes for v5.20 2022-08-12 09:44:23 -07:00
cacheinfo.c LoongArch: Refactor cache probe and flush methods 2022-10-12 16:36:14 +08:00
cpu-probe.c LoongArch: Mark 3 symbol exports as non-GPL 2023-04-26 14:28:38 +02:00
crash_dump.c LoongArch: Add kdump support 2022-10-12 16:36:19 +08:00
dma.c LoongArch: Use acpi_arch_dma_setup() and remove ARCH_HAS_PHYS_TO_DMA 2022-09-24 18:39:21 +02:00
efi-header.S efi/loongarch: Add efistub booting support 2022-09-06 11:19:34 +02:00
efi.c efi/loongarch: libstub: remove dependency on flattened DT 2022-09-27 13:22:49 +02:00
elf.c LoongArch: Fix and simplify fcsr initialization on execve() 2024-01-25 15:27:43 -08:00
entry.S LoongArch: Re-tab the assembly files 2022-07-29 18:22:32 +08:00
env.c LoongArch: Check the return value when creating kobj 2025-09-25 10:58:52 +02:00
fpu.S LoongArch: Re-tab the assembly files 2022-07-29 18:22:32 +08:00
genex.S LoongArch: Re-tab the assembly files 2022-07-29 18:22:32 +08:00
head.S LoongArch: Remove unused kernel stack padding 2022-10-29 16:29:31 +08:00
idle.c LoongArch: Add process management 2022-06-03 20:09:28 +08:00
image-vars.h efi/libstub: use EFI provided memcpy/memset routines 2022-09-17 15:13:21 +02:00
inst.c LoongArch: Add ELF and module support 2022-06-03 20:09:28 +08:00
io.c LoongArch: Add misc common routines 2022-06-03 20:09:28 +08:00
irq.c LoongArch: Define ARCH_IRQ_INIT_FLAGS as IRQ_NOPROBE 2024-09-30 16:23:47 +02:00
machine_kexec.c LoongArch: Convert unreachable() to BUG() 2025-03-13 12:53:11 +01:00
Makefile LoongArch changes for v6.1 2022-10-12 10:35:20 -07:00
mem.c LoongArch: Set all reserved memblocks on Node#0 at initialization 2023-10-06 14:56:58 +02:00
module-sections.c LoongArch: Support R_LARCH_GOT_PC_{LO12,HI20} in modules 2022-10-12 16:36:14 +08:00
module.c LoongArch: Define relocation types for ABI v2.10 2023-10-06 14:57:01 +02:00
numa.c LoongArch: numa: Fix high_memory calculation 2023-10-06 14:57:01 +02:00
perf_event.c LoongArch: Lately init pmu after smp is online 2024-06-12 11:02:59 +02:00
perf_regs.c LoongArch: Add perf events support 2022-10-12 16:36:14 +08:00
proc.c LoongArch: Fix probing of the CRC32 feature 2023-04-26 14:28:38 +02:00
process.c LoongArch: Don't crash in stack_top() for tasks without vDSO 2024-11-01 01:56:03 +01:00
ptrace.c LoongArch: Fix missing fcsr in ptrace's fpr_set 2022-07-29 18:22:33 +08:00
relocate_kernel.S LoongArch: Add kdump support 2022-10-12 16:36:19 +08:00
reset.c LoongArch: Cleanup reset routines with new API 2022-08-25 19:34:59 +08:00
setup.c LoongArch: Get correct cores_per_package for SMT systems 2024-11-01 01:56:06 +01:00
signal.c LoongArch: Adjust arch_do_signal_or_restart() to adapt generic entry 2022-09-03 18:01:27 +08:00
smp.c LoongArch: Disable IRQ before init_fn() for nonboot CPUs 2024-03-01 13:26:31 +01:00
stacktrace.c LoongArch: Add USER_STACKTRACE support 2022-08-12 13:10:11 +08:00
switch.S LoongArch: Remove unused kernel stack padding 2022-10-29 16:29:31 +08:00
syscall.c LoongArch: Add system call support 2022-06-03 20:09:28 +08:00
sysrq.c LoongArch: Add SysRq-x (TLB Dump) support 2022-10-12 16:36:14 +08:00
time.c LoongArch: Implement constant timer shutdown interface 2023-12-20 17:00:23 +01:00
topology.c LoongArch: Do not create sysfs control file for io master CPUs 2022-10-12 16:36:08 +08:00
traps.c LoongArch: Add kdump support 2022-10-12 16:36:19 +08:00
unwind_guess.c LoongArch: Get frame info in unwind_start() when regs is not available 2023-02-06 08:06:32 +01:00
unwind_prologue.c LoongArch: Get frame info in unwind_start() when regs is not available 2023-02-06 08:06:32 +01:00
vdso.c LoongArch: Fix build errors due to backported TIMENS 2024-11-08 16:26:48 +01:00
vmlinux.lds.S LoongArch: Adjust symbol addressing for AS_HAS_EXPLICIT_RELOCS 2022-10-12 16:36:08 +08:00