mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
nvgpu_pmu_rpc_execute takes pmu rpc header address and dereferences it at address past header based on rpc struct that the header is part of. This usage of pointer is not right and confuses CERT checker. Instead, pass the rpc struct address as char pointer and use as header or rpc struct as per need. CID 17141 CID 154223 CID 17557 CID 154226 CID 153904 CID 153926 CID 153929 CID 153925 CID 153925 CID 225346 CID 225355 CID 225356 CID 225360 CID 225361 CID 225365 CID 225367 CID 296735 CID 330244 CID 17557 Bug 3512546 Change-Id: I93b154d4321e75c0d2b41f43d7c2b701682962a3 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2710224 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit