From 590517d05acc55a96199b87ddfbbfec9b01936a6 Mon Sep 17 00:00:00 2001
From: Fedor Uporov <fsu@FreeBSD.org>
Date: Sun, 7 Jul 2019 08:53:52 +0000
Subject: [PATCH] Remove unneeded mount point unlock call.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-11-EXT2-6: Denial Of Service in write-1 (ext2_balloc)

MFC after:	2 weeks
---
 sys/fs/ext2fs/ext2_balloc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/fs/ext2fs/ext2_balloc.c b/sys/fs/ext2fs/ext2_balloc.c
index 7d5cff6667ea..f6660fad30a5 100644
--- a/sys/fs/ext2fs/ext2_balloc.c
+++ b/sys/fs/ext2fs/ext2_balloc.c
@@ -308,7 +308,6 @@ ext2_balloc(struct inode *ip, e2fs_lbn_t lbn, int size, struct ucred *cred,
 		 */
 		if ((error = bwrite(nbp)) != 0) {
 			ext2_blkfree(ip, nb, fs->e2fs_bsize);
-			EXT2_UNLOCK(ump);
 			brelse(bp);
 			return (error);
 		}