From a50a23698cfd283a23f99b07869395dbdfed8512 Mon Sep 17 00:00:00 2001 From: Zhu Yi Date: Wed, 27 Aug 2008 14:33:00 +0800 Subject: [PATCH] --- yaml --- r: 109310 b: refs/heads/master c: 74870172824a78640ec4f03058d9bd35dfa08618 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/lockdep.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 1ddb8df39884..1dfd794fd3aa 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 04148b73b89d49fe0fe201bcee395e51f7d637ce +refs/heads/master: 74870172824a78640ec4f03058d9bd35dfa08618 diff --git a/trunk/kernel/lockdep.c b/trunk/kernel/lockdep.c index b5db51d2803d..dbda475b13bd 100644 --- a/trunk/kernel/lockdep.c +++ b/trunk/kernel/lockdep.c @@ -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