lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTi=2r1pzBXiYjZifKrWFUXcUtNE3nBwspRM37DYx@mail.gmail.com>
Date:	Wed, 2 Mar 2011 00:08:06 +0800
From:	Daniel J Blueman <daniel.blueman@...il.com>
To:	Linux BTRFS <linux-btrfs@...r.kernel.org>
Cc:	Linux Kernel <linux-kernel@...r.kernel.org>,
	Chris Mason <chris.mason@...cle.com>,
	Josef Bacik <josef@...hat.com>
Subject: [2.6.38-rc6, patch] fix delayed_refs locking on error path...

Correctly unlock delayed_refs in the error case.

Signed-off-by: Daniel J Blueman <daniel.blueman@...il.com>

diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index e1aa8d6..c48d699 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2787,6 +2787,7 @@ static int btrfs_destroy_delayed_refs(struct
btrfs_transaction *trans,
 	spin_lock(&delayed_refs->lock);
 	if (delayed_refs->num_entries == 0) {
 		printk(KERN_INFO "delayed_refs has NO entry\n");
+		spin_unlock(&delayed_refs->lock);
 		return ret;
 	}

-- 
Daniel J Blueman
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ