diff options
| author | Nikolay Borisov <nborisov@suse.com> | 2017-07-12 09:42:19 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2017-08-16 17:12:02 +0300 |
| commit | b6e6bca51e531989de11af7967bd32bd973d96b9 (patch) | |
| tree | 38377b00826bf90a87839ac8e9e58df98dbfd847 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | c55024514852930a6a31b6794aad44a56b117d9d (diff) | |
| download | linux-b6e6bca51e531989de11af7967bd32bd973d96b9.tar.xz | |
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 <nborisov@suse.com>
Reviewed-by: Qu Wenruo <quwenruo.btrfs@gmx.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
