[PATCH] drm: fix a use-after-free when GPU acceleration disabled