drm/ttm: Fix an oops and sync object leak.
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 21 Jul 2009 15:45:13 +0000 (17:45 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 29 Jul 2009 05:56:04 +0000 (15:56 +1000)
commit4677f15c60421d48566c48c3149474e64977f071
tree674c1099d98e0a6d441b9cb53d7e872bdf7136a0
parent7a50f01a4ab89d5c05eb2cf62e206ac0bfc61d2c
drm/ttm: Fix an oops and sync object leak.

The code was potentially dereferencig a NULL sync object pointer.
At the same time a sync object reference was potentially leaked.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo_util.c