mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-22 00:00:03 +03:00
Update bcachefs sources to 22ccceee15 bcachefs: Fix a slab-out-of-bounds
This commit is contained in:
parent
807b250927
commit
42edda8db6
@ -1 +1 @@
|
||||
504729f99c4e1655be1da3e8c62d20b790483eba
|
||||
22ccceee1555cd9a66f0b444634a7c0099a73d77
|
||||
|
@ -479,7 +479,7 @@ __bch2_alloc_to_v4_mut(struct btree_trans *trans, struct bkey_s_c k)
|
||||
{
|
||||
struct bkey_i_alloc_v4 *ret;
|
||||
|
||||
ret = bch2_trans_kmalloc(trans, sizeof(struct bkey_i_alloc_v4));
|
||||
ret = bch2_trans_kmalloc(trans, max(bkey_bytes(k.k), sizeof(struct bkey_i_alloc_v4)));
|
||||
if (IS_ERR(ret))
|
||||
return ret;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user