]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm: Use kvzalloc for allocating blob property memory
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 29 Jun 2018 14:27:10 +0000 (16:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Jul 2018 16:05:21 +0000 (11:05 -0500)
commit718b5406cd76f1aa6434311241b7febf0e8571ff
tree8f176e3e71a70e6d6b8544e5702e7e18f137dcd0
parent021c91791a5e7e85c567452f1be3e4c2c6cb6063
drm: Use kvzalloc for allocating blob property memory

The property size may be controlled by userspace, can be large (I've
seen failure with order 4, i.e. 16 pages / 64 KB) and doesn't need to be
physically contiguous.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180629142710.2069-1-michel@daenzer.net
Cc: stable@vger.kernel.org
drivers/gpu/drm/drm_property.c