drm: Prefer kmalloc_array() over kmalloc() with multiply
authorThierry Reding <treding@nvidia.com>
Wed, 10 Dec 2014 12:03:36 +0000 (13:03 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 10 Dec 2014 13:13:40 +0000 (14:13 +0100)
commit2f6c538924108fbffb72a0696f28537b364080fa
treebf91d49ae4ffa1db74506a4c793e6a42f9b23e2f
parentbd3f0ff98a849e04dc2c0236f32cc75b8c8630db
drm: Prefer kmalloc_array() over kmalloc() with multiply

Fixes a couple of checkpatch warnings regarding the use of kmalloc()
with a multiplication. kmalloc_array() is the preferred API.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c