diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-04-30 23:45:56 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-05-07 16:28:31 -0400 |
commit | 4c928984bfa54c9b1c5d3e679d9ed62f284b8f3c (patch) | |
tree | 3750eb93212b370361b9c03d99b1e768d6363869 | |
parent | 86fe64e48631dbe330355b8127d816957baff52b (diff) | |
download | e2fsprogs-4c928984bfa54c9b1c5d3e679d9ed62f284b8f3c.tar.gz |
libext2fs: fix missing mutex unlock in an error path of the Unix I/O manager
Originally from https://github.com/tytso/e2fsprogs/pull/68
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | lib/ext2fs/unix_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c index 64eee3425..528c2fbcf 100644 --- a/lib/ext2fs/unix_io.c +++ b/lib/ext2fs/unix_io.c @@ -398,7 +398,7 @@ static errcode_t raw_write_blk(io_channel channel, mutex_lock(data, BOUNCE_MTX); if (ext2fs_llseek(data->dev, location, SEEK_SET) < 0) { retval = errno ? errno : EXT2_ET_LLSEEK_FAILED; - goto error_out; + goto error_unlock; } actual = write(data->dev, buf, size); mutex_unlock(data, BOUNCE_MTX); |