diff options
author | Kenneth Graunke <[email protected]> | 2012-05-21 19:34:13 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-05-30 21:49:40 -0700 |
commit | 1559b2e2d7c0d9ddab0e186fcf855ea847152ef1 (patch) | |
tree | 44243209a8bbe9084cf68aa3d1c0a415be41164b /doxygen/math_subset.doxy | |
parent | 2224fb6047dd96cbc11d7f2093319e5eb49c0b6b (diff) |
ralloc: Fix ralloc_parent() of memory allocated out of the NULL context.
If an object is allocated out of the NULL context, info->parent will be
NULL. Using the PTR_FROM_HEADER macro would be incorrect: it would say
that ralloc_parent(ralloc_context(NULL)) == sizeof(ralloc_header).
Fixes the new "null_parent" unit test.
NOTE: This is a candidate for the 7.9, 7.10, 7.11, and 8.0 branches.
Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'doxygen/math_subset.doxy')
0 files changed, 0 insertions, 0 deletions