[PATCH v1] drivers:gt:Switch to use kmemdup_array()

2024-08-20 Thread Yu Jiaoliang
Let the kememdup_array() take care about multiplication and possible overflows. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/i915/gt/intel_workarounds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c b/drivers/gpu/drm/i915/g

Re: [PATCH v1] drivers:gt:Switch to use kmemdup_array()

2024-08-20 Thread Andi Shyti
Hi Yi, Please, next time check with "git drivers/gpu/drm/i915/gt" to better understand the patch formatting. The title should be something like: drm/i915/gt: Switch to use kmemdup_array() But sounds more grammatically correct drm/i915/gt: Use kmemdup_array instead of kmemdup for multiple

Re: [PATCH v1] drivers:gt:Switch to use kmemdup_array()

2024-08-20 Thread Jani Nikula
On Tue, 20 Aug 2024, Yu Jiaoliang wrote: > Let the kememdup_array() take care about multiplication and possible > overflows. > Signed-off-by: Yu Jiaoliang For future reference, please look at git log for the file instead of inventing subject prefixes. There should be a blank line between commit