drm/mgag200: fix oops in cursor code.
authorDave Airlie <airlied@redhat.com>
Thu, 16 Jan 2014 04:28:22 +0000 (14:28 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 16 Jan 2014 04:43:04 +0000 (14:43 +1000)
In some cases we enter the cursor code with file_priv = NULL causing an oops,
we also can try to unpin something that isn't pinned, and this is a good fix for it.

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found