cirrus: avoid crash if driver fails to load

If we haven't inited the mm code, don't try and tear it down.

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie
2012-05-31 13:53:56 +01:00
부모 bc42aabc6a
커밋 93b4cc56aa
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@@ -145,7 +145,7 @@ struct cirrus_device {
struct ttm_bo_device bdev;
atomic_t validate_sequence;
} ttm;
bool mm_inited;
};