Skip to content
Commit d1dd9908 authored by Jani Nikula's avatar Jani Nikula
Browse files

drm/i915/hti: avoid theoretically possible negative shift



If phy is PHY_NONE, the shift to register bits becomes negative. Check
and warn about this.

Reported-by: default avatarcoverity-bot <keescook@chromium.org>
References: https://lore.kernel.org/r/202211180848.D39006C@keescook


Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221122120948.3436180-1-jani.nikula@intel.com
parent 67630bac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment