mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
UBSAN is reporting "invalid-load include/linux/dma-buf-map.h". This is because non-boolean value loaded to bool variable is_iomem of dma_buf_map struct. Zeroing out this struct at declaration time make sure that there is no garbage value which will be non-boolean. Bug 3994163 Change-Id: Ib18448e8fc09cbcb25c3eeb3e5deec805f6ed008 Signed-off-by: Ashish Mhetre <amhetre@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2869262 Tested-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>