mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Accessing queue and payload fields of MSGQ via array index causes out-of-bound warnings in new kernel version as they are initialized as arrays of size 1: index 53 is out of range for type 'int32_t [1]' index 2045 is out of range for type 'int32_t [1]' Addressing this by accessing the fields via pointer increment instead of array index. Bug 4420795 Change-Id: I873dbe08a894d1eea8866bb8a16018816d0e4db3 Signed-off-by: Viswanath L <viswanathl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3199294 Reviewed-by: Asha T <atalambedu@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Dara Ramesh <dramesh@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com>
5.0 KiB
5.0 KiB