]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regulator: Fix error checking for debugfs_create_dir
authorOsama Muhammad <osmtendev@gmail.com>
Mon, 15 May 2023 17:29:38 +0000 (22:29 +0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 13:44:09 +0000 (15:44 +0200)
commit30ade27dbe66fe081bf5d8dd149768e473d8386f
tree8c50aad92410adeeb999bab899cd77dc390e3216
parenta12155f0b1b6473f2ce0f0132e20c57b8310a705
regulator: Fix error checking for debugfs_create_dir

[ Upstream commit 2bf1c45be3b8f3a3f898d0756c1282f09719debd ]

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: Osama Muhammad <osmtendev@gmail.com
Suggested-by: Ivan Orlov <ivan.orlov0322@gmail.com
Link: https://lore.kernel.org/r/20230515172938.13338-1-osmtendev@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/core.c