]> www.infradead.org Git - users/hch/misc.git/commit
lib: fix the NULL vs IS_ERR() bug for debugfs_create_dir()
authorYang Ruibin <11162571@vivo.com>
Wed, 21 Aug 2024 07:34:40 +0000 (03:34 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:43:40 +0000 (20:43 -0700)
commit38676d9e33133c0c39951b812b19cc5b9ff1978a
tree02aba9b412c63825fe3eb3f282448d44b44e5eee
parentfb54ea1ee84534cab6a15515c73a0811bdcbc973
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: Yang Ruibin <11162571@vivo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test_fpu_glue.c