From: Sinclair Yeh Date: Wed, 12 Aug 2015 05:53:39 +0000 (-0700) Subject: drm/vmwgfx: Fix crash when unloading vmwgfx v2 X-Git-Tag: omap-for-v4.3/fixes-rc1~89^2~23^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05c9501859c8bd80635d7299c384e2a8db7c0ce1;p=pandora-kernel.git drm/vmwgfx: Fix crash when unloading vmwgfx v2 This patch fixes two issues. One, when a surface is a proxy for a DMA buffer, it holds an extra reference that needs to be cleared. Two, when fbdev is enabled, we need to unpin the framebuffer before unloading the driver. This is done by a call to vmw_fb_off(). v2 Moved unreferencing surface to from vmw_framebuffer_surface_destroy() to vmw_kms_new_framebuffer() Added "struct vmw_framebuffer *vfb = NULL;" to silence a compiler warning. Removed error checking after calling vmw_surface/dmabuf_reference() Signed-off-by: Sinclair Yeh Signed-off-by: Thomas Hellstrom --- Reading git-diff-tree failed