mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gpu: nvgpu: mm: fix CERT-C STR30 violation in mmu_fault
Fix CERT-C Rule STR30 violation for assigning string literal to non-const pointer by changing the declaration. JIRA NVGPU-3628 Change-Id: I804cf2e02c40b934a1575faa68a0cc3849927699 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2133798 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f2dea4e8fc
commit
8f25fe41e2
@@ -51,7 +51,7 @@ static int gv11b_fb_fix_page_fault(struct gk20a *g,
|
|||||||
struct mmu_fault_info *mmufault);
|
struct mmu_fault_info *mmufault);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const char * const invalid_str = "invalid";
|
static const char invalid_str[] = "invalid";
|
||||||
|
|
||||||
static const char *const gv11b_fault_type_descs[] = {
|
static const char *const gv11b_fault_type_descs[] = {
|
||||||
"invalid pde",
|
"invalid pde",
|
||||||
|
|||||||
Reference in New Issue
Block a user