]> git.baikalelectronics.ru Git - kernel.git/commit
drm: stop vmgfx driver explosion
authorAlan Cox <alan@linux.intel.com>
Mon, 20 Aug 2012 14:44:52 +0000 (14:44 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 21 Aug 2012 23:26:50 +0000 (09:26 +1000)
commit73bde4c90e1665ff9daedc3c8ed80d59a7cc625f
tree5595d976c072e81bbd6dda20131841511b5ad79f
parent8cfd91c66c2aa622693ddd17b658553d9c270139
drm: stop vmgfx driver explosion

If you do a page flip with no flags set then event is NULL. If event is
NULL then the vmw_gfx driver likes to go digging into NULL and extracts
NULL->base.file_priv.

On a modern kernel with NULL mapping protection it's just another oops,
without it there are some "intriguing" possibilities.

What it should do is an open question but that for the driver owners to
sort out.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c