Commit 3815eca8 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: Ide1f9cbc31fea6fbb1d74f7ad4bbb6bef7caa0a9
parent 1b3cfadf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment