Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 7e34440

Browse files
Aleksandr Mishingregkh
Aleksandr Mishin
authored andcommitted
drm/msm: Fix incorrect file name output in adreno_request_fw()
[ Upstream commit e193669 ] In adreno_request_fw() when debugging information is printed to the log after firmware load, an incorrect filename is printed. 'newname' is used instead of 'fwname', so prefix "qcom/" is being added to filename. Looks like "copy-paste" mistake. Fix this mistake by replacing 'newname' with 'fwname'. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 2c41ef1 ("drm/msm/adreno: deal with linux-firmware fw paths") Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/602382/ Signed-off-by: Rob Clark <robdclark@chromium.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a02d92e commit 7e34440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/msm/adreno/adreno_gpu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ adreno_request_fw(struct adreno_gpu *adreno_gpu, const char *fwname)
468468
ret = request_firmware_direct(&fw, fwname, drm->dev);
469469
if (!ret) {
470470
DRM_DEV_INFO(drm->dev, "loaded %s from legacy location\n",
471-
newname);
471+
fwname);
472472
adreno_gpu->fwloc = FW_LOCATION_LEGACY;
473473
goto out;
474474
} else if (adreno_gpu->fwloc != FW_LOCATION_UNKNOWN) {

0 commit comments

Comments
 (0)