[PATCH] drm/i915: use check_add_overflow() and drop local variants
Jani Nikula
jani.nikula at intel.com
Tue Apr 9 10:38:25 UTC 2024
On Mon, 08 Apr 2024, Rodrigo Vivi <rodrigo.vivi at intel.com> wrote:
> On Fri, Apr 05, 2024 at 11:26:25PM +0300, Jani Nikula wrote:
>> Prefer common check_add_overflow() from overflow.h over the locally
>> rolled versions of it. While check_add_overflow() does require a
>> variable to assign to, unlike add_overflows_t(), it's still better than
>> having multiple versions around.
>>
>> Cc: Kees Cook <keescook at chromium.org>
>> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
>
> Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
Thanks, pushed to drm-intel-next.
BR,
Jani.
--
Jani Nikula, Intel
More information about the Intel-gfx
mailing list