Skip to content
Commit 41efbb68 authored by Immad Mir's avatar Immad Mir Committed by Huacai Chen
Browse files

LoongArch: Fix debugfs_create_dir() error checking



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: default avatarIvan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: default avatarImmad Mir <mirimmad17@gmail.com>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent 0246d0aa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment