]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit64608c9fc95a9a656285f7484c5242b77f7437e1
treef3cc8c5bd05bf6ae4605522f7f57d967fd25f30f
parente5e06850f860b4ea1964b35e63c0232d1db3e91d
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