diff options
author | Yu Kuai <yukuai3@huawei.com> | 2024-04-06 12:09:25 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-04-11 12:14:36 +0300 |
commit | 9617cd6f24b294552a817f80f5225431ef67b540 (patch) | |
tree | 6edfc794ad4e0c47ef1836516c188cdb79d9d55a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | abe6acfa7d7b666d785eae706bd34b63f3c2b11f (diff) | |
download | linux-9617cd6f24b294552a817f80f5225431ef67b540.tar.xz |
block: fix module reference leakage from bdev_open_by_dev error path
At the time bdev_may_open() is called, module reference is grabbed
already, hence module reference should be released if bdev_may_open()
failed.
This problem is found by code review.
Fixes: ed5cc702d311 ("block: Add config option to not allow writing to mounted devices")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240406090930.2252838-22-yukuai1@huaweicloud.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions