diff options
| author | Chao Yu <[email protected]> | 2019-02-15 00:16:15 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <[email protected]> | 2019-03-05 19:58:06 -0800 |
| commit | 6d52e135c8a8b2063e0a9fe1f12c06e9208a941c (patch) | |
| tree | ea98d979f4b41968eb88479e82776ad833338851 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 500e0b28ecd3c5aade98f3c3a339d18dcb166bb6 (diff) | |
f2fs: don't allow negative ->write_io_size_bits
As Dan reported:
"We put an upper bound on ->write_io_size_bits but we don't have a lower
bound."
So let's add lower bound check for ->write_io_size_bits in parse_options().
[We don't allow configuring ->write_io_size_bits to zero, since at least
we need to fill one dummy page for aligned IO.]
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions