]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: mean_and_variance: Avoid too-large shift amounts
authorTavian Barnes <tavianator@tavianator.com>
Fri, 21 Jun 2024 20:38:44 +0000 (16:38 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 18 Jul 2024 22:33:30 +0000 (18:33 -0400)
commit73f88592dd1bef38542024ef8223599afc2c41bb
tree78ab50c2c9398eb8e173401c427aebdf3201d01a
parenta97b43fac5b9b3ffca71b8a917a249789902fce9
bcachefs: mean_and_variance: Avoid too-large shift amounts

Shifting a value by the width of its type or more is undefined.

Signed-off-by: Tavian Barnes <tavianator@tavianator.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/mean_and_variance.h