Skip to content
Commit 7f975700 authored by Carsten Haitzler's avatar Carsten Haitzler Committed by Greg Kroah-Hartman
Browse files

drm/komeda: Fix bit check to import to value of proper type



[ Upstream commit be3e477e ]

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: default avatarCarsten Haitzler <carsten.haitzler@arm.com>
Acked-by: default avatarLiviu Dudau <liviu.dudau@arm.com>
Signed-off-by: default avatarLiviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201218150812.68195-1-carsten.haitzler@foss.arm.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5e8b58e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment