diff options
| author | Colin Ian King <[email protected]> | 2021-06-02 11:06:59 +0100 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-06-03 09:54:33 -0600 |
| commit | 90bf3e28ef51aa3f480d2f2151813be669ba69ce (patch) | |
| tree | 3a9c1343dc69b41ce8b683674310cca850ec9b4f /tools/perf/scripts/python/sctop.py | |
| parent | 0e0ccdecb3cff95a350b4364e7ebbaa754d0e47d (diff) | |
null_blk: Fix null pointer dereference on nullb->disk on blk_cleanup_disk call
The error handling on a nullb->disk allocation currently jumps to
out_cleanup_disk that calls blk_cleanup_disk with a null pointer causing
a null pointer dereference issue. Fix this by jumping to out_cleanup_tags
instead.
Addresses-Coverity: ("Dereference after null check")
Fixes: 132226b301b5 ("null_blk: convert to blk_alloc_disk/blk_cleanup_disk")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions