projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'x86-asm-2024-03-11' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
[linux-2.6-block.git]
/
fs
/
bcachefs
/
snapshot.c
diff --git
a/fs/bcachefs/snapshot.c
b/fs/bcachefs/snapshot.c
index 45f67e8b29eb67f188e5cfb32aa39e0b1ad1d625..ac6ba04d5521714ece2e2cb00400fff60ec05eb6 100644
(file)
--- a/
fs/bcachefs/snapshot.c
+++ b/
fs/bcachefs/snapshot.c
@@
-728,7
+728,7
@@
static int check_snapshot(struct btree_trans *trans,
return 0;
memset(&s, 0, sizeof(s));
- memcpy(&s, k.v,
bkey_val_bytes(k.k
));
+ memcpy(&s, k.v,
min(sizeof(s), bkey_val_bytes(k.k)
));
id = le32_to_cpu(s.parent);
if (id) {