]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Use kmalloc_array() in vmw_surface_define_ioctl()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 22 Sep 2016 19:54:33 +0000 (21:54 +0200)
committerSinclair Yeh <syeh@vmware.com>
Mon, 10 Oct 2016 18:46:35 +0000 (11:46 -0700)
commitc2f5ec1e2a4f032fa98debccfcb579806449fd90
tree3d4f537c3f0baf5f42306bb776c0432a04c68629
parente89bee8cc2c88a7a1b9e4f71783132f04bb558ba
drm/vmwgfx: Use kmalloc_array() in vmw_surface_define_ioctl()

Multiplications for the size determination of memory allocations
indicated that array data structures should be processed.
Thus use the corresponding function "kmalloc_array".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c