]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/gt: Use kmemdup_array instead of kmemdup for multiple allocation
authorYu Jiaoliang <yujiaoliang@vivo.com>
Wed, 21 Aug 2024 14:40:36 +0000 (16:40 +0200)
committerAndi Shyti <andi.shyti@linux.intel.com>
Fri, 23 Aug 2024 23:13:08 +0000 (01:13 +0200)
commit3126d5fff54368288e7fe1c0fd4ecb36b868e5aa
tree66a6ce5d28b07fbe941c4f19d8c8446b6962a4d3
parent6628851159c77cf5666160e0272d46acc0772a6c
drm/i915/gt: Use kmemdup_array instead of kmemdup for multiple allocation

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 <yujiaoliang@vivo.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240821144036.343556-1-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/gt/intel_workarounds.c