mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
This patch fixes violations for below listed rules in nvgpu/common/mm/as.c. MISRA Rule 10.3 forbids implicit conversion of an essential type to different or narrower essential type. MISRA rule 10.4 requires essential type of left hand operand to be same as right hand operand. MISRA Rule 21.8 requires the size_t argument of strncpy() to be less than length of the source string. Change-Id: I4ff1e4dbbd602baf906af8230c6902249e0223e8 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2142566 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
4.5 KiB
4.5 KiB