Commit 4cce1b05 authored by David Sterba's avatar David Sterba Committed by Greg Kroah-Hartman
Browse files

btrfs: use unsigned types for constants defined as bit shifts



[ Upstream commit 05a6ec86 ]

The unsigned type is a recommended practice (CWE-190, CWE-194) for bit
shifts to avoid problems with potential unwanted sign extensions.
Although there are no such cases in btrfs codebase, follow the
recommendation.

Reviewed-by: default avatarBoris Burkov <boris@bur.io>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
Stable-dep-of: 1f2889f5 ("btrfs: fix qgroup reservation leak on failure to allocate ordered extent")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 1fe766dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment