UPSTREAM: 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. Bug: 254441685 Fixes: 06c2d9a0 ("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> (cherry picked from commit 711e26c0) Signed-off-by:
Lee Jones <joneslee@google.com> Change-Id: I81c2ecf328f65c2cfef6994247c3a6316334dcf2
Loading
Please sign in to comment