nilfs2: fix memory leak in nilfs_sysfs_create_snapshot_group
[linux-2.6-microblaze.git] / mm / kmemleak.c
index 73d46d1..b59f176 100644 (file)
@@ -598,7 +598,7 @@ static struct kmemleak_object *create_object(unsigned long ptr, size_t size,
        object->checksum = 0;
 
        /* task information */
-       if (in_irq()) {
+       if (in_hardirq()) {
                object->pid = 0;
                strncpy(object->comm, "hardirq", sizeof(object->comm));
        } else if (in_serving_softirq()) {