]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Use kmemdup instead of kmalloc and memcpy
authorShyam Saini <mayhs11saini@gmail.com>
Thu, 19 Jan 2017 21:45:34 +0000 (13:45 -0800)
committerSinclair Yeh <syeh@vmware.com>
Fri, 27 Jan 2017 05:26:17 +0000 (21:26 -0800)
commite670c032d2abfc0b180eca4fd9fb97882d7a6c07
tree0a2398da4b68335d045d3ebd46145ddfac607eab
parentd9917cac8696686999899078a0007c57eeafc7b0
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>
drivers/gpu/drm/vmwgfx/vmwgfx_mob.c