]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: varint: Avoid left-shift of a negative value
authorTavian Barnes <tavianator@tavianator.com>
Fri, 21 Jun 2024 20:39:58 +0000 (16:39 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 18 Jul 2024 22:33:30 +0000 (18:33 -0400)
commitee1b8dc17ac367f3fbea18fee4f7825eb11eb757
tree76e0ab5a5c016bea4ac70671da9a5c4fc80d6ab1
parent2e118ba36d56acf78084518dfb7cb53b1d417da0
bcachefs: varint: Avoid left-shift of a negative value

Shifting a negative value left is undefined.

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