]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
LoongArch: Check the return value when creating kobj
authorTao Cui <cuitao@kylinos.cn>
Thu, 18 Sep 2025 11:44:04 +0000 (19:44 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 18 Sep 2025 11:44:04 +0000 (19:44 +0800)
commit51adb03e6b865c0c6790f29659ff52d56742de2e
tree43b8695034fbcf4e4dded8b762e703832c48c766
parenta9d13433fe17be0e867e51e71a1acd2731fbef8d
LoongArch: Check the return value when creating kobj

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>
arch/loongarch/kernel/env.c