Commit 38676d9e authored by Yang Ruibin's avatar Yang Ruibin Committed by Andrew Morton
Browse files

lib: fix the NULL vs IS_ERR() bug for debugfs_create_dir()

debugfs_create_dir() returns error pointers.  It never returns NULL.  So
use IS_ERR() to check it.

Link: https://lkml.kernel.org/r/20240821073441.9701-1-11162571@vivo.com


Signed-off-by: default avatarYang Ruibin <11162571@vivo.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent fb54ea1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment