diff options
author | Mikulas Patocka <[email protected]> | 2024-10-07 13:38:12 +0200 |
---|---|---|
committer | Mikulas Patocka <[email protected]> | 2024-10-15 13:37:17 +0200 |
commit | fed13a5478680614ba97fc87e71f16e2e197912e (patch) | |
tree | 69e5f716fe994c8cc26e8f843c4a6abef4216c76 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 8e929cb546ee42c9a61d24fae60605e9e3192354 (diff) |
dm: fix a crash if blk_alloc_disk fails
If blk_alloc_disk fails, the variable md->disk is set to an error value.
cleanup_mapped_device will see that md->disk is non-NULL and it will
attempt to access it, causing a crash on this statement
"md->disk->private_data = NULL;".
Signed-off-by: Mikulas Patocka <[email protected]>
Reported-by: Chenyuan Yang <[email protected]>
Closes: https://marc.info/?l=dm-devel&m=172824125004329&w=2
Cc: [email protected]
Reviewed-by: Nitesh Shetty <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions