diff options
| author | Jia-Ju Bai <[email protected]> | 2019-07-27 16:51:13 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-09-09 14:59:00 +0200 |
| commit | 982f1f5d161735efb85f85cd9c5fb4d61ccfc0aa (patch) | |
| tree | fb7202089bf9ba6632af4841027bd87aa31f60fe /tools/perf/scripts/python/sched-migration.py | |
| parent | 330a582790452a159686c5dab8f4286babd9c00e (diff) | |
btrfs: Add an assertion to warn incorrect case in insert_inline_extent()
In insert_inline_extent(), the case that checks compressed_size > 0
and compressed_pages = NULL cannot occur, otherwise a null-pointer
dereference may occur on line 215:
cpage = compressed_pages[i];
To catch this incorrect case, an assertion is added.
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Jia-Ju Bai <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions