]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2015 12:14:30 +0000 (05:14 -0700)
commit125ebdda23c3d9d4473e8b2591bc0fdaec931daa
treef56eabcde3ae9396fcb777e4b2a58010861f545d
parent3020ad2c93aa8ba98b0b7dbbad997500308400e6
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_cs.c