]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/prime: Fix drm_gem_prime_mmap() stack use
authorNoralf Trønnes <noralf@tronnes.org>
Wed, 21 Nov 2018 18:02:15 +0000 (19:02 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Thu, 22 Nov 2018 14:44:05 +0000 (15:44 +0100)
commit10fdb7d2ad4244c668f33706f98d019795fc63c8
treefb56dde853ec48166eaf1c395754a770c90c2dd3
parent7b24eec754ba0f0f794ab09413dcde2585b4a84b
drm/prime: Fix drm_gem_prime_mmap() stack use

drivers/gpu/drm/drm_prime.c: In function 'drm_gem_prime_mmap':
>> drivers/gpu/drm/drm_prime.c:688:1: warning: the frame size of 1592 bytes is larger than 1024 bytes [-Wframe-larger-than=]

Fix by allocating on the heap.

Fixes: 7698799f9554 ("drm/prime: Add drm_gem_prime_mmap()")
Reported-by: kbuild test robot <lkp@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181121180215.13881-1-noralf@tronnes.org
drivers/gpu/drm/drm_prime.c