]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/lockdep.c
lockdep: fix invalid list_del_rcu in zap_class
[linux-2.6-omap-h63xx.git] / kernel / lockdep.c
index b5db51d2803deff8357c1829d0deddd75f00186c..dbda475b13bd62876490fc5a523d373d72c931cd 100644 (file)
@@ -875,11 +875,11 @@ static int add_lock_to_list(struct lock_class *class, struct lock_class *this,
        if (!entry)
                return 0;
 
-       entry->class = this;
-       entry->distance = distance;
        if (!save_trace(&entry->trace))
                return 0;
 
+       entry->class = this;
+       entry->distance = distance;
        /*
         * Since we never remove from the dependency list, the list can
         * be walked lockless by other CPUs, it's only allocation