]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hte: tegra: Fix missing error code in tegra_hte_test_probe()
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Thu, 26 Oct 2023 07:53:28 +0000 (00:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:56:58 +0000 (11:56 +0100)
commit19e557524deda080e2050b7680b151d7ce3a07fe
tree9e94914d6b9248ba09764fba09ac1c18c52267e6
parent2c7c5602622ebcaf618e6afb5b862953ac32ee59
hte: tegra: Fix missing error code in tegra_hte_test_probe()

[ Upstream commit b7c3ca3553d1de5e86c85636828e186d30cd0628 ]

The value of 'ret' is zero when of_hte_req_count() fails to get number
of entitties to timestamp. And returning success(zero) on this failure
path is incorrect.

Fixes: 9a75a7cd03c9 ("hte: Add Tegra HTE test driver")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Dipen Patel <dipenp@nvidia.com>
Signed-off-by: Dipen Patel <dipenp@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hte/hte-tegra194-test.c