mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
As part of the negative test case we replace the ACR binaries with corrupted one(by editing the binary in hex editor). The expectaion was the process should log the error and exit properly but instead the process crashed. We have found the root cause and it was because we were trying to flush a memory which was not allocated. To mitigate this issue we added a checking condition to check if the memory was allocated before flushing. Bug 3670576 Change-Id: I6b510388fb913695210c791e2253c7514bb7a0a9 Signed-off-by: ht <ht@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2762276 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>