]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - mm/kmemleak.c
kmemleak: Show more information for objects found by alias
[net-next-2.6.git] / mm / kmemleak.c
index 2c0d032ac8983b8e59919019e07a97d9f25adad9..c2c9feb3097f8cf600c99dc541dd6b0d3ddb7839 100644 (file)
@@ -398,7 +398,9 @@ static struct kmemleak_object *lookup_object(unsigned long ptr, int alias)
                object = prio_tree_entry(node, struct kmemleak_object,
                                         tree_node);
                if (!alias && object->pointer != ptr) {
-                       kmemleak_warn("Found object by alias");
+                       pr_warning("Found object by alias at 0x%08lx\n", ptr);
+                       dump_stack();
+                       dump_object_info(object);
                        object = NULL;
                }
        } else