drm/radeon/kms: fix r600/r700 cs checker to avoid double kfree
commit7cb72ef4d39978e6e07415a2d552b06d567c3079
authorJerome Glisse <jglisse@redhat.com>
Thu, 11 Feb 2010 11:44:32 +0000 (11 12:44 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Feb 2010 20:48:33 +0000 (12 06:48 +1000)
tree122dd81c7be26b25f85cfb6261626d6589d503cb
parent82568565683b4991964a5fc89a9ca0c7122818e8
drm/radeon/kms: fix r600/r700 cs checker to avoid double kfree

radeon_cs kfree the tracker structure but for r6xx/r7xx we want
to kfree it inside the parse function because we share it with
the UMS code path. Set tracker to NULL after freeing it will
avoid double free.

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