]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: Fix debugfs_create_dir() error checking
authorImmad Mir <mirimmad17@gmail.com>
Thu, 15 Jun 2023 06:35:56 +0000 (14:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:02:09 +0000 (16:02 +0200)
commitf3c8b43d72c0fa89e2d940fe725657ac54b600fc
treeec1d4522d1d3a02deff444b24801178a1b18988e
parentde4a6917c4cb5fee1f998a1eb29b7d2c40085cad
LoongArch: Fix debugfs_create_dir() error checking

commit 41efbb682de1231c3f6361039f46ad149e3ff5b9 upstream.

The debugfs_create_dir() returns ERR_PTR in case of an error and the
correct way of checking it is using the IS_ERR_OR_NULL inline function
rather than the simple null comparision. This patch fixes the issue.

Cc: stable@vger.kernel.org
Suggested-By: Ivan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: Immad Mir <mirimmad17@gmail.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/loongarch/kernel/unaligned.c