summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ta/ta.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ta/ta.c b/ta/ta.c
index eda77076ee..0045024833 100644
--- a/ta/ta.c
+++ b/ta/ta.c
@@ -105,6 +105,10 @@ static struct ta_ext_header *get_or_alloc_ext_header(void *ptr)
* Setting parent==NULL (with ptr!=NULL) always succeeds, and unsets the
* parent of ptr. Operations ptr==NULL always succeed and do nothing.
* Returns true on success, false on OOM.
+ *
+ * Warning: if ta_parent is a direct or indirect child of ptr, things will go
+ * wrong. The function will apparently succeed, but creates circular
+ * parent links, which are not allowed.
*/
bool ta_set_parent(void *ptr, void *ta_parent)
{