drm/mgag200: fix oops in cursor code.
authorDave Airlie <[email protected]>
Thu, 16 Jan 2014 04:28:22 +0000 (14:28 +1000)
committerDave Airlie <[email protected]>
Thu, 16 Jan 2014 04:43:04 +0000 (14:43 +1000)
commit53dac830537b51df555ba5e7ebb236705b7eaa7c
tree40c529676e0f0fd6784f229eb7df00af8bb706a7
parentc5416d661daa9ccef4f42259ad0d48e28b5f950f
drm/mgag200: fix oops in cursor code.

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: [email protected]
Signed-off-by: Dave Airlie <[email protected]>
drivers/gpu/drm/mgag200/mgag200_cursor.c