mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-03 00:00:07 +03:00
Update bcachefs sources to ffad51ba45 bcachefs: Fix a use after free
This commit is contained in:
parent
03498f9464
commit
fd1b84975b
@ -1 +1 @@
|
|||||||
04036b491089aeb4bac5d796ae1716d019564f7a
|
ffad51ba45f8c0785bbb2e2903715d825a8eea9a
|
||||||
|
@ -387,7 +387,12 @@ btree_key_can_insert_cached(struct btree_trans *trans,
|
|||||||
*/
|
*/
|
||||||
trace_trans_restart_key_cache_key_realloced(trans->fn, _RET_IP_,
|
trace_trans_restart_key_cache_key_realloced(trans->fn, _RET_IP_,
|
||||||
path->btree_id, &path->pos);
|
path->btree_id, &path->pos);
|
||||||
return btree_trans_restart(trans);
|
/*
|
||||||
|
* Not using btree_trans_restart() because we can't unlock here, we have
|
||||||
|
* write locks held:
|
||||||
|
*/
|
||||||
|
trans->restarted = true;
|
||||||
|
return -EINTR;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void do_btree_insert_one(struct btree_trans *trans,
|
static inline void do_btree_insert_one(struct btree_trans *trans,
|
||||||
|
Loading…
Reference in New Issue
Block a user