summaryrefslogtreecommitdiff
path: root/libbcachefs/quota.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-05-20 20:47:55 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2021-05-20 20:47:55 -0400
commit09021c38d3ffd53c54664a5cbabc3c6a37c46960 (patch)
treefc45d73a95c5725a4eb6832b9a0ee71d1baae189 /libbcachefs/quota.c
parent9c0dc7b8d42e380e15822cc00d70958f8f10e0f3 (diff)
Update bcachefs sources to ac3ab6a511 bcachefs: Fix an uninitialized var
Diffstat (limited to 'libbcachefs/quota.c')
-rw-r--r--libbcachefs/quota.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbcachefs/quota.c b/libbcachefs/quota.c
index 3f78fe7d..35b409e0 100644
--- a/libbcachefs/quota.c
+++ b/libbcachefs/quota.c
@@ -742,7 +742,9 @@ static int bch2_set_quota_trans(struct btree_trans *trans,
if (qdq->d_fieldmask & QC_INO_HARD)
new_quota->v.c[Q_INO].hardlimit = cpu_to_le64(qdq->d_ino_hardlimit);
- return bch2_trans_update(trans, iter, &new_quota->k_i, 0);
+ ret = bch2_trans_update(trans, iter, &new_quota->k_i, 0);
+ bch2_trans_iter_put(trans, iter);
+ return ret;
}
static int bch2_set_quota(struct super_block *sb, struct kqid qid,