diff options
author | José Fonseca <[email protected]> | 2008-07-02 12:22:51 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-07-02 12:29:07 +0900 |
commit | ea4ca10b1bec67c8a60db0e4e5581318ce9f62f9 (patch) | |
tree | dd815f4ea41b98cfba066a1aacc71da71a45e0f7 /src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c | |
parent | 66b48202c221a25f3980df8f443ce63c2fb4119f (diff) |
pipebuffer: Verify usage flag consistency. Minor cleanups.
Diffstat (limited to 'src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c')
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c index 702bef1c043..0d2d6c0c1b2 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c @@ -88,6 +88,9 @@ pb_alt_manager_create(struct pb_manager *provider1, { struct pb_alt_manager *mgr; + if(!provider1 || !provider2) + return NULL; + mgr = CALLOC_STRUCT(pb_alt_manager); if (!mgr) return NULL; |