]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: Use kmemdup instead of kmalloc and memcpy
authorTian Tao <tiantao6@hisilicon.com>
Tue, 10 Nov 2020 11:34:58 +0000 (19:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Nov 2020 19:27:54 +0000 (14:27 -0500)
commit3bb9962d770b133c2c1eec57bcea37469bfe58aa
treee279fefed6de417cddbeada6c01d618a674b25ce
parent21cc5e1a7c307c59d547c6ee6fa77fc5223dfc5a
drm/amd/pm: Use kmemdup instead of kmalloc and memcpy

Fixes coccicheck warning:
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c:255:
36-43: WARNING opportunity for kmemdup

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c