diff options
author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2012-08-14 18:48:48 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2012-08-14 18:48:48 +0200 |
commit | 0f65ee9576dcfe3f9b82dcda47fd8744874c4ccb (patch) | |
tree | a88b41c8232c263dadb3a91150f28d42e1b8c0b3 /tests/prime_nv_pcopy.c | |
parent | fc54f2eaa8f55ceb4955d31ef6d8b36645c6910f (diff) |
fix crash with insufficient permissions
Diffstat (limited to 'tests/prime_nv_pcopy.c')
-rw-r--r-- | tests/prime_nv_pcopy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/prime_nv_pcopy.c b/tests/prime_nv_pcopy.c index 650ea24ee..5da0066bc 100644 --- a/tests/prime_nv_pcopy.c +++ b/tests/prime_nv_pcopy.c @@ -1285,6 +1285,8 @@ int main(int argc, char **argv) /* set up intel bufmgr */ bufmgr = drm_intel_bufmgr_gem_init(intel_fd, 4096); + if (!bufmgr) + return -1; drm_intel_bufmgr_gem_enable_reuse(bufmgr); /* set up nouveau bufmgr */ |