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

2024-08-26 Thread 于佼良
在 2024/8/24 7:32, Andi Shyti 写道: > [Some people who received this message don't often get email from > andi.sh...@linux.intel.com. Learn why this is important at > https://aka.ms/LearnAboutSenderIdentification ] > > Hi Yu, > > On Wed, Aug 21, 2024 at 10:41:27AM +0800, Yu Jiaoliang wrote: >> Let t

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

2024-08-26 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 v3: - Fix code alignment - Apply the patch on a clean drm-tip Signed-off-by: Yu Jiaoliang Reviewed-by

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

2024-08-23 Thread Andi Shyti
Hi Yu, On Wed, Aug 21, 2024 at 10:41:27AM +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 > > v3: > - Fix cod