Commit 5c8f4dcb authored by Lv Ruyi's avatar Lv Ruyi Committed by Lee Jones
Browse files

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: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarLv Ruyi <lv.ruyi@zte.com.cn>
Reviewed-by: default avatarJon Hunter <jonathanh@nvidia.com>
Tested-by: default avatarJon Hunter <jonathanh@nvidia.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
(cherry picked from commit 711e26c0)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: I81c2ecf328f65c2cfef6994247c3a6316334dcf2
parent 14d0c7d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment