Skip to content

Commit

Permalink
kmemleak: Rename kmemleak_panic to kmemleak_stop
Browse files Browse the repository at this point in the history
This is to avoid the confusion created by the "panic" word.

Signed-off-by: Catalin Marinas <[email protected]>
Acked-by: Pekka Enberg <[email protected]>
  • Loading branch information
ctmarinas committed Jun 17, 2009
1 parent 216c04b commit 000814f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mm/kmemleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ static void kmemleak_disable(void);
* recovered from. Kkmemleak will be disabled and further allocation/freeing
* tracing no longer available.
*/
#define kmemleak_panic(x...) do { \
#define kmemleak_stop(x...) do { \
kmemleak_warn(x); \
kmemleak_disable(); \
} while (0)
Expand Down Expand Up @@ -467,8 +467,8 @@ static void create_object(unsigned long ptr, size_t size, int min_count,

object = kmem_cache_alloc(object_cache, gfp & GFP_KMEMLEAK_MASK);
if (!object) {
kmemleak_panic("kmemleak: Cannot allocate a kmemleak_object "
"structure\n");
kmemleak_stop("kmemleak: Cannot allocate a kmemleak_object "
"structure\n");
return;
}

Expand Down Expand Up @@ -527,8 +527,8 @@ static void create_object(unsigned long ptr, size_t size, int min_count,
if (node != &object->tree_node) {
unsigned long flags;

kmemleak_panic("kmemleak: Cannot insert 0x%lx into the object "
"search tree (already existing)\n", ptr);
kmemleak_stop("kmemleak: Cannot insert 0x%lx into the object "
"search tree (already existing)\n", ptr);
object = lookup_object(ptr, 1);
spin_lock_irqsave(&object->lock, flags);
dump_object_info(object);
Expand Down Expand Up @@ -699,7 +699,7 @@ static void log_early(int op_type, const void *ptr, size_t size,
struct early_log *log;

if (crt_early_log >= ARRAY_SIZE(early_log)) {
kmemleak_panic("kmemleak: Early log buffer exceeded\n");
kmemleak_stop("kmemleak: Early log buffer exceeded\n");
return;
}

Expand Down

0 comments on commit 000814f

Please sign in to comment.