]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 21:50:24 +0000 (13:50 -0800)
commitd79d8ea83a4b4746e5b69c71921473127c3443eb
tree5459b3c936ab15e20da823dd4b6ba6f718614209
parentc3269a105bca3da6aee087742f4a348536151505
drm/mgag200: fix oops in cursor code.

commit 53dac830537b51df555ba5e7ebb236705b7eaa7c upstream.

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.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/mgag200/mgag200_cursor.c