projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ea037d
)
bcachefs: Fix a shift greater than type size
author
Kent Overstreet
<kent.overstreet@gmail.com>
Thu, 11 Feb 2021 19:49:36 +0000
(14:49 -0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:53 +0000
(17:08 -0400)
Found by UBSAN
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/inode.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/inode.c
b/fs/bcachefs/inode.c
index b11aecf2cfabf5c0681bbec6843ca3bc1f3bfd5f..3462e248c9540b9756334a63c904372e163b5b31 100644
(file)
--- a/
fs/bcachefs/inode.c
+++ b/
fs/bcachefs/inode.c
@@
-479,7
+479,7
@@
int bch2_inode_create(struct btree_trans *trans,
u64 min, max, start, *hint;
int ret;
- u
nsigned
cpu = raw_smp_processor_id();
+ u
64
cpu = raw_smp_processor_id();
unsigned bits = (c->opts.inodes_32bit
? 31 : 63) - c->inode_shard_bits;