Commit 51adb03e authored by Tao Cui's avatar Tao Cui Committed by Huacai Chen
Browse files

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: default avatarTao Cui <cuitao@kylinos.cn>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent a9d13433
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment