[Intel-gfx] [PATCH] drm/i915/hti: avoid theoretically possible negative shift

Kees Cook keescook at chromium.org
Wed Nov 23 05:16:34 UTC 2022


On Tue, Nov 22, 2022 at 02:09:48PM +0200, Jani Nikula wrote:
> If phy is PHY_NONE, the shift to register bits becomes negative. Check
> and warn about this.
> 
> Reported-by: coverity-bot <keescook at chromium.org>
> References: https://lore.kernel.org/r/202211180848.D39006C@keescook
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>

Reviewed-by: Kees Cook <keescook at chromium.org>

-- 
Kees Cook


More information about the Intel-gfx mailing list