aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/ext2fs/ext2_balloc.c
diff options
context:
space:
mode:
authorFedor Uporov <fsu@FreeBSD.org>2019-07-07 08:53:52 +0000
committerFedor Uporov <fsu@FreeBSD.org>2019-07-07 08:53:52 +0000
commit590517d05acc55a96199b87ddfbbfec9b01936a6 (patch)
tree109efca29f9f631ca6a7d23f9125b92c0888a074 /sys/fs/ext2fs/ext2_balloc.c
parent7b9bcad9394010ca4f3c4625249fc3476c9a73f1 (diff)
downloadsrc-590517d05acc55a96199b87ddfbbfec9b01936a6.tar.gz
src-590517d05acc55a96199b87ddfbbfec9b01936a6.zip
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
Notes
Notes: svn path=/head/; revision=349800
Diffstat (limited to 'sys/fs/ext2fs/ext2_balloc.c')
-rw-r--r--sys/fs/ext2fs/ext2_balloc.c1
1 files changed, 0 insertions, 1 deletions
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);
}