]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: tegra: Fix error check return value of debugfs_create_file()
authorLv Ruyi <lv.ruyi@zte.com.cn>
Tue, 19 Apr 2022 01:36:48 +0000 (01:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:04 +0000 (14:23 +0200)
commitbbf50508975bdde3ac3d5ece51f4917573a28809
treea1237807908c21561512f2eeb656e1f90408e68f
parentcaa4fc9328397c6f6479bbb69a85a2ad80b22747
firmware: tegra: Fix error check return value of debugfs_create_file()

[ Upstream commit 5884f11bc59fac96d5b10adc25747c1ba7211130 ]

If an error occurs, debugfs_create_file() will return ERR_PTR(-ERROR),
so use IS_ERR() to check it.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/tegra/bpmp-debugfs.c