]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/pmu: don't print reply values if exec is false
authorColin Ian King <colin.king@canonical.com>
Wed, 19 Dec 2018 15:29:49 +0000 (15:29 +0000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 19 Feb 2019 22:59:58 +0000 (08:59 +1000)
commitb5b649104f731538da39e655f728ad309ce4bfdb
treeedaf928321aa770d0858b08e481ce9f3f53129ae
parentfca40e67dc35b82570c0f95a373909d8a1aa67c6
drm/nouveau/pmu: don't print reply values if exec is false

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: 6aad52bc87aa ("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>
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/memx.c