[Mesa-dev] [PATCH] i965, i915: Return early if miptree allocation fails

Chad Versace chad.versace at linux.intel.com
Wed Jun 26 15:01:03 PDT 2013


On 06/26/2013 02:57 PM, Ian Romanick wrote:
> On 06/26/2013 02:42 PM, Chad Versace wrote:
>> 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.
>> Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
>
> Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
>
> Too bad this didn't land before the split.  The cherry-pick will probably be annoying now. :(  Alas.
>

No problem, I already have a cherry-picked it my local 9.1 to save you the trouble. Will
push both in tandem, since there's no risk in this patch.



More information about the mesa-dev mailing list