]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/radeon: Use drm_calloc_ab for CS relocs
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 16 Apr 2015 02:17:27 +0000 (11:17 +0900)
committerZefan Li <lizefan@huawei.com>
Fri, 18 Sep 2015 01:20:33 +0000 (09:20 +0800)
commit961bd13539b9e7ca5d2e667668141496b7a1d6bc
tree7e163f512967aeadc071a59eff98381599feddda
parent0243c10d3341502b3653b71abfe7b4da068a2a02
drm/radeon: Use drm_calloc_ab for CS relocs

commit b421ed15d2c3039eb724680e4de1e4b2bd196a9a upstream.

The number of relocs is passed in by userspace and can be large. It has
been observed to cause kcalloc failures in the wild.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
[lizf: Backported to 3.4: adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/gpu/drm/radeon/radeon_cs.c