mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: Fix Explicit null dereference
Fix the following Coverity Defect: pwrpolicy.c : Explicit null dereference CID 10059138 Bug 3460991 Signed-off-by: Jinesh Parakh <jparakh@nvidia.com> Change-Id: Ie572e0608d0b07d5023e7cca878d16087cfc284f Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2717978 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Ramesh Mylavarapu <rmylavarapu@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
697215afd3
commit
658f83ca48
@@ -271,8 +271,7 @@ static struct pmu_board_obj *construct_pwr_policy(struct gk20a *g,
|
|||||||
|
|
||||||
obj = (struct pmu_board_obj *)(void *)pwrpolicy;
|
obj = (struct pmu_board_obj *)(void *)pwrpolicy;
|
||||||
|
|
||||||
status = pmu_board_obj_construct_super(g,
|
status = pmu_board_obj_construct_super(g, obj, pargs);
|
||||||
(struct pmu_board_obj *)(void *)pwrpolicy, pargs);
|
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user