mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 07:35:14 +00:00
drm/nouveau/pmu: don't print reply values if exec is false
[ Upstream commitb1d03fc36e
] Currently the uninitialized values in the array reply are printed out when exec is false and nvkm_pmu_send has not updated the array. Avoid confusion by only dumping out these values if they have been actually updated. Detected by CoverityScan, CID#1271291 ("Uninitialized scaler variable") Fixes:ebb58dc2ef
("drm/nouveau/pmu: rename from pwr (no binary change)") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
b03bf452b4
commit
99028d131f
1 changed files with 2 additions and 2 deletions
|
@ -88,10 +88,10 @@ nvkm_memx_fini(struct nvkm_memx **pmemx, bool exec)
|
|||
if (exec) {
|
||||
nvkm_pmu_send(pmu, reply, PROC_MEMX, MEMX_MSG_EXEC,
|
||||
memx->base, finish);
|
||||
nvkm_debug(subdev, "Exec took %uns, PMU_IN %08x\n",
|
||||
reply[0], reply[1]);
|
||||
}
|
||||
|
||||
nvkm_debug(subdev, "Exec took %uns, PMU_IN %08x\n",
|
||||
reply[0], reply[1]);
|
||||
kfree(memx);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue