]> 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)
commitd00d4ec3b3fa3baee3d8d367f6e61d7fb528b912
tree40c529676e0f0fd6784f229eb7df00af8bb706a7
parent3683a2f6b46473ae3ab3bf6dfec1f836d38bba7e
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