From 6fd751d8270201c4086a7c3544cab8c5b8836167 Mon Sep 17 00:00:00 2001 From: "mochel@digitalimplant.org" Date: Thu, 24 Mar 2005 18:59:59 -0800 Subject: [PATCH] --- yaml --- r: 2359 b: refs/heads/master c: 0293a509405dccecc30783a5d729d615b68d6a77 h: refs/heads/master i: 2357: 024c0125de7bb96ecc221227dfc97d7562fda34e 2355: 994a6a79ee435b582b8d0606897ad7c9eca99290 2351: adddd582cdd3e1128d2730d6d381dcf450977434 v: v3 --- [refs] | 2 +- trunk/lib/klist.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 13c80e2efbf9..460a78bdc5a5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0956af53afea290c5676c75249fc2c180d831375 +refs/heads/master: 0293a509405dccecc30783a5d729d615b68d6a77 diff --git a/trunk/lib/klist.c b/trunk/lib/klist.c index 02177d72dc89..738ab810160a 100644 --- a/trunk/lib/klist.c +++ b/trunk/lib/klist.c @@ -145,9 +145,10 @@ EXPORT_SYMBOL_GPL(klist_del); void klist_remove(struct klist_node * n) { - spin_lock(&n->n_klist->k_lock); + struct klist * k = n->n_klist; + spin_lock(&k->k_lock); klist_dec_and_del(n); - spin_unlock(&n->n_klist->k_lock); + spin_unlock(&k->k_lock); wait_for_completion(&n->n_removed); }