aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn20.c
diff options
context:
space:
mode:
authorCarsten Haitzler <carsten.haitzler@arm.com>2020-12-18 15:08:12 +0000
committerLiviu Dudau <liviu.dudau@arm.com>2020-12-18 16:36:00 +0000
commitbe3e477effba636ad25dcd244db264c6cd5c1f36 (patch)
tree51d6206b6d4d409449e3ba1932766952d75612bb /drivers/gpu/drm/amd/display/dmub/src/dmub_dcn20.c
parentdrm/komeda: Handle NULL pointer access code path in error case (diff)
downloadlinux-dev-be3e477effba636ad25dcd244db264c6cd5c1f36.tar.xz
linux-dev-be3e477effba636ad25dcd244db264c6cd5c1f36.zip
drm/komeda: Fix bit check to import to value of proper type
KASAN found this problem. find_first_bit() expects to look at a pointer pointing to a long, but we look at a u32 - this is going to be an issue with endianness but, KSAN already flags this as out-of-bounds stack reads. This fixes it by just importing inot a local long. Signed-off-by: Carsten Haitzler <carsten.haitzler@arm.com> Acked-by: Liviu Dudau <liviu.dudau@arm.com> Signed-off-by: Liviu Dudau <liviu.dudau@arm.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201218150812.68195-1-carsten.haitzler@foss.arm.com
Diffstat (limited to 'drivers/gpu/drm/amd/display/dmub/src/dmub_dcn20.c')
0 files changed, 0 insertions, 0 deletions