diff options
author | Shyam Saini <mayhs11saini@gmail.com> | 2017-01-20 00:45:34 +0300 |
---|---|---|
committer | Sinclair Yeh <syeh@vmware.com> | 2017-01-27 08:26:17 +0300 |
commit | 5d25fde23b3176c7f94d2a992cb9762707d7c2a0 (patch) | |
tree | 0a2398da4b68335d045d3ebd46145ddfac607eab /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 8c95742e566f3945f992472a5f99f78aaa7f890b (diff) | |
download | linux-5d25fde23b3176c7f94d2a992cb9762707d7c2a0.tar.xz |
drm/vmwgfx: Use kmemdup instead of kmalloc and memcpy
When some other buffer is immediately copied into allocated region.
Replace calls to kmalloc followed by a memcpy with a direct
call to kmemdup.
Signed-off-by: Shyam Saini <mayhs11saini@gmail.com>
Reviewed-by: Sinclair Yeh <syeh@vmare.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions