mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: remove invalid NULL check
mmufault will not be NULL when recovery is triggered of type RC_TYPE_MMU_FAULT. NULL check for it at one place followed by dereference is flagged as CERT issue. Remove this invalid NULL check. CID 17871 Bug 3512546 Change-Id: Ice8035f5df33c45ef0afb4c2a1395e0d5455652c Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2692544 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
a112c5d9dd
commit
11819380e8
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2021, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2015-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -227,7 +227,7 @@ void gv11b_fifo_recover(struct gk20a *g, u32 act_eng_bitmask,
|
||||
nvgpu_tsg_set_unserviceable(g, tsg);
|
||||
}
|
||||
|
||||
if (rc_type == RC_TYPE_MMU_FAULT && mmufault != NULL) {
|
||||
if (rc_type == RC_TYPE_MMU_FAULT) {
|
||||
if (mmufault->faulted_pbdma != INVAL_ID) {
|
||||
pbdma_bitmask = BIT32(mmufault->faulted_pbdma);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user