]> 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)
committerThierry Reding <treding@nvidia.com>
Fri, 8 Jul 2022 15:56:03 +0000 (17:56 +0200)
commit5884f11bc59fac96d5b10adc25747c1ba7211130
tree37f07d437ab1727e87a2316fefc8fe221b00f0ff
parenteaa35fd3800a0095aee0ddbabfe70429feb94dd5
firmware: tegra: Fix error check return value of debugfs_create_file()

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>
drivers/firmware/tegra/bpmp-debugfs.c