drm/vmwgfx: Fix an error path causing an oops.
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 13 Jan 2010 21:28:37 +0000 (22:28 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 14 Jan 2010 02:17:56 +0000 (12:17 +1000)
commit50ec3b7c35fda131e92abc6f9d93a230b7e009eb
tree3fb8bbe2794bfb76f56549d070ed53f806f3bf94
parentdf1c93bae2b671e2aa50899a120af20afdbd504b
drm/vmwgfx: Fix an error path causing an oops.

An error happening before the snooper.image member had been set up
would cause a kfree of an arbitrary pointer. Set up the snooper.image
member early.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c