diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2013-06-26 13:53:15 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2013-06-27 13:16:47 -0700 |
commit | 6b676e66343356d5096260c2bc1601014c808cb0 (patch) | |
tree | 4cc8efc69a0f3d7a44ce8d41d394acd4330337bb /src/mesa/main/ffvertex_prog.c | |
parent | 670f829102f45263f32826ec2dbbbf5c367b5f54 (diff) | |
download | external_mesa3d-6b676e66343356d5096260c2bc1601014c808cb0.zip external_mesa3d-6b676e66343356d5096260c2bc1601014c808cb0.tar.gz external_mesa3d-6b676e66343356d5096260c2bc1601014c808cb0.tar.bz2 |
i965,i915: Return early if miptree allocation fails
If allocation fails in intel_miptree_create_layout(), don't proceed to
dereference the miptree. Return an early NULL.
Fixes static analysis error reported by Klocwork.
Note: This is a candidate for the 9.1 branch.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/mesa/main/ffvertex_prog.c')
0 files changed, 0 insertions, 0 deletions