]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit614ac4a9d65ea44cd7e157a738f1c92d7c656c94
tree40c529676e0f0fd6784f229eb7df00af8bb706a7
parent4887fd7af5c50dcf8f2afd9361b8d8f3ab207970
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: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/mgag200/mgag200_cursor.c