Commit f0f4d65a authored by Osama Muhammad's avatar Osama Muhammad Committed by sanglipeng
Browse files

regulator: Fix error checking for debugfs_create_dir

stable inclusion
from stable-v5.10.185
commit dbf610997242ec62facd04a11c5258ba84607ea1
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8L5XP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=dbf610997242ec62facd04a11c5258ba84607ea1



--------------------------------

[ Upstream commit 2bf1c45b ]

This patch fixes the error checking in core.c in debugfs_create_dir.
The correct way to check if an error occurred is 'IS_ERR' inline function.

Signed-off-by: default avatarOsama Muhammad <osmtendev@gmail.com>
Suggested-by: default avatarIvan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20230515172938.13338-1-osmtendev@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent de7a4312
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment