drm/ttm: Be consistent on ttm_bo_init() failures
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 9 Nov 2010 20:31:44 +0000 (21:31 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 10 Nov 2010 01:52:19 +0000 (11:52 +1000)
commit7dfbbdcffebc41441e64278961f57d2840a76259
tree5a536fdc99de855160409a33f5049ebb503c66de
parent2b66b50b12cabc05f05543e792d4c9c2465d5702
drm/ttm: Be consistent on ttm_bo_init() failures

Call destroy() on _all_ ttm_bo_init() failures, and make sure that
behavior is documented in the function description.

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