]> git.baikalelectronics.ru Git - kernel.git/commit
drm/prime: Remove PRIME handles only if supported
authorThierry Reding <thierry.reding@gmail.com>
Wed, 28 Aug 2013 10:04:14 +0000 (12:04 +0200)
committerDave Airlie <airlied@gmail.com>
Thu, 29 Aug 2013 23:11:59 +0000 (09:11 +1000)
commit57b0f74286fa6a9fd2aa9c6ce63bb6a86a185a28
tree2eb35545b4a532f9f81cbcaa720b8841871862d5
parent8244aa62b06b18e330e7a9bc7443df0ae4fdc0a4
drm/prime: Remove PRIME handles only if supported

Drivers that don't support PRIME will not have initialized the PRIME
specific private component of struct drm_file. If called for such
drivers, the drm_gem_remove_prime_handles() function will crash. Fix
it by checking for PRIME support prior to removing the PRIME handles.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/drm_gem.c