drm/radeon/kms: Fix r600 blit cleanup path
authorJerome Glisse <jglisse@redhat.com>
Wed, 13 Jan 2010 09:29:27 +0000 (10:29 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 14 Jan 2010 01:53:36 +0000 (11:53 +1000)
commit30d2d9a54d48e4fefede0389ded1b6fc2d44a522
treef3cc8c5bd05bf6ae4605522f7f57d967fd25f30f
parent6398d42454ce1671b3422c34fd0f600c9c76c8b1
drm/radeon/kms: Fix r600 blit cleanup path

r600 blit cleanup path need to check if a bo was allocated before
trying to free or unpin it. This patch add this check and avoid
oops when the initialization on r6xx or r7xx hw fails.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/r600_blit_kms.c
drivers/gpu/drm/radeon/rv770.c