summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/tegra/bpmp.c
diff options
context:
space:
mode:
authorTimo Alho <talho@nvidia.com>2020-07-12 12:01:14 +0200
committerThierry Reding <treding@nvidia.com>2020-07-14 17:56:28 +0200
commit8b08dbb1b14ae1142003cb8a95e71e48b3a416d4 (patch)
tree94c4576d57991dad8283776982eb217a16369329 /drivers/firmware/tegra/bpmp.c
parentLinux 5.8-rc1 (diff)
downloadlinux-8b08dbb1b14ae1142003cb8a95e71e48b3a416d4.tar.xz
linux-8b08dbb1b14ae1142003cb8a95e71e48b3a416d4.zip
firmware: tegra: Add return code checks and increase debugfs size
Add checking of the BPMP-FW return code values for MRQ_DEBUGFS calls. Also, development versions of the firmware may have debugfs with a directory structure larger than 256 KiB. Hence increase the size of the memory buffer to accommodate those firmware revisions. And finally, ensure that no access outside of allocated memory buffer happens in case BPMP-FW returns an invalid response size (nbytes) from mrq_debugfs_dumpdir() call. Signed-off-by: Timo Alho <talho@nvidia.com> Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/firmware/tegra/bpmp.c')
0 files changed, 0 insertions, 0 deletions