linux-yocto/arch/loongarch
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
..
boot
configs mm: z3fold: deprecate CONFIG_Z3FOLD 2024-10-17 15:22:05 +02:00
include LoongArch: Align ACPI structures if ARCH_STRICT_ALIGN enabled 2025-09-25 10:58:52 +02:00
kernel LoongArch: Check the return value when creating kobj 2025-09-25 10:58:52 +02:00
lib
mm LoongArch: Fix build error due to backport 2025-05-05 10:59:01 +02:00
net LoongArch: BPF: Fix jump offset calculation in tailcall 2025-08-28 16:25:49 +02:00
pci LoongArch: Fix memleak in pci_acpi_scan_root() 2024-10-17 15:22:16 +02:00
vdso LoongArch: Fix build failure with GCC 15 (-std=gnu23) 2024-12-14 19:53:49 +01:00
Kbuild
Kconfig LoongArch: Select ARCH_USE_MEMTEST 2025-05-02 07:46:55 +02:00
Kconfig.debug
Makefile LoongArch: Explicitly specify code model in Makefile 2025-05-22 14:10:09 +02:00