From: Thierry Reding Date: Wed, 28 Aug 2013 10:04:14 +0000 (+0200) Subject: drm/prime: Remove PRIME handles only if supported X-Git-Tag: v3.12-rc1~136^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c784855067a8d10cef6088b14a58083e3918fdc;p=pandora-kernel.git 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 Signed-off-by: Dave Airlie --- Reading git-diff-tree failed