Re: [PATCH v2] drm/i915/gt: Use kmemdup_array instead of kmemdup for multiple allocation

2024-08-20 Thread Andi Shyti
Hi Lucas, On Tue, Aug 20, 2024 at 07:53:10AM -0500, Lucas De Marchi wrote: > On Tue, Aug 20, 2024 at 05:53:02PM GMT, Yu Jiaoliang wrote: > > Let the kememdup_array() take care about multiplication and possible > > overflows. > > > > v2: > > - Change subject > > - Leave one blank line between the

Re: [PATCH v2] drm/i915/gt: Use kmemdup_array instead of kmemdup for multiple allocation

2024-08-20 Thread Lucas De Marchi
On Tue, Aug 20, 2024 at 05:53:02PM GMT, Yu Jiaoliang wrote: Let the kememdup_array() take care about multiplication and possible overflows. v2: - Change subject - Leave one blank line between the commit log and the tag section - Fix code alignment issue Signed-off-by: Yu Jiaoliang Reviewed-by:

Re: [PATCH v2] drm/i915/gt: Use kmemdup_array instead of kmemdup for multiple allocation

2024-08-20 Thread Andi Shyti
Hi, On Tue, Aug 20, 2024 at 05:53:02PM +0800, Yu Jiaoliang wrote: > Let the kememdup_array() take care about multiplication and possible > overflows. > > v2: > - Change subject > - Leave one blank line between the commit log and the tag section > - Fix code alignment issue > > Signed-off-by: Yu

[PATCH v2] drm/i915/gt: Use kmemdup_array instead of kmemdup for multiple allocation

2024-08-20 Thread Yu Jiaoliang
Let the kememdup_array() take care about multiplication and possible overflows. v2: - Change subject - Leave one blank line between the commit log and the tag section - Fix code alignment issue Signed-off-by: Yu Jiaoliang Reviewed-by: Jani Nikula Reviewed-by: Andi Shyti --- drivers/gpu/drm/i9