aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-08-20 11:44:08 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2024-08-20 13:47:36 +0200
commita1e627af32ed60713941cbfc8075d44cad07f6dd (patch)
tree773e7ecbd92375991974b84283bfcd79b85c5081 /drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c
parent6275c7bc8dd07644ea8142a1773d826800f0f3f7 (diff)
mmc: mmc_test: Fix NULL dereference on allocation failure
If the "test->highmem = alloc_pages()" allocation fails then calling __free_pages(test->highmem) will result in a NULL dereference. Also change the error code to -ENOMEM instead of returning success. Fixes: 2661081f5ab9 ("mmc_test: highmem tests") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/8c90be28-67b4-4b0d-a105-034dc72a0b31@stanley.mountain Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c')
0 files changed, 0 insertions, 0 deletions