]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: tegra: Fix error application of sizeof() to pointer
authorLv Ruyi <lv.ruyi@zte.com.cn>
Sat, 9 Oct 2021 08:59:00 +0000 (08:59 +0000)
committerThierry Reding <treding@nvidia.com>
Mon, 18 Oct 2021 14:04:01 +0000 (16:04 +0200)
commitc262d6703d507c252367d0df17f3624925451193
tree04c0eb97cd124a46bcff333e6a32e8197e544011
parent0ef523758998525f3df4d7176e31c6f8fbe359e9
firmware: tegra: Fix error application of sizeof() to pointer

Application of sizeof() to pointer yields the number of bytes of the
pointer, but it should use the length of buffer in the code.

Fixes: c09ddbe5d162 ("firmware: tegra: Reduce stack usage")
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/firmware/tegra/bpmp-debugfs.c