diff options
| author | Nikolay Borisov <[email protected]> | 2017-07-12 06:42:19 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2017-08-16 14:12:02 +0000 |
| commit | b6e6bca51e531989de11af7967bd32bd973d96b9 (patch) | |
| tree | 38377b00826bf90a87839ac8e9e58df98dbfd847 /fs/btrfs/dev-replace.c | |
| parent | btrfs: Enhance message when a device is missing during mount (diff) | |
| download | kernel-b6e6bca51e531989de11af7967bd32bd973d96b9.tar.gz kernel-b6e6bca51e531989de11af7967bd32bd973d96b9.zip | |
btrfs: qgroups: Fix BUG_ON condition in tree level check
The current code was erroneously checking for
root_level > BTRFS_MAX_LEVEL. If we had a root_level of 8 then the check
won't trigger and we could potentially hit a buffer overflow. The
correct check should be root_level >= BTRFS_MAX_LEVEL .
Signed-off-by: Nikolay Borisov <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
