]> Git Repo - linux.git/commit
GPU-DRM: Use kmalloc_array() in drm_legacy_addbufs_pci()
authorMarkus Elfring <[email protected]>
Mon, 19 Sep 2016 15:07:06 +0000 (17:07 +0200)
committerDaniel Vetter <[email protected]>
Wed, 21 Sep 2016 11:24:27 +0000 (13:24 +0200)
commit2027400893a2fa03d764f62ca8e0c677d7691234
treef9bfe2ff615004c1107ea15aae869b182b7cdf12
parent823d1bc1082970fc02f8172859c789933ed84bc5
GPU-DRM: Use kmalloc_array() in drm_legacy_addbufs_pci()

A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "kmalloc_array".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_bufs.c
This page took 0.052663 seconds and 4 git commands to generate.