diff options
author | 2024-04-06 17:09:25 +0800 | |
---|---|---|
committer | 2024-04-11 11:14:36 +0200 | |
commit | 9617cd6f24b294552a817f80f5225431ef67b540 (patch) | |
tree | 6edfc794ad4e0c47ef1836516c188cdb79d9d55a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fs: Return ENOTTY directly if FS_IOC_GETUUID or FS_IOC_GETFSSYSFSPATH fail (diff) | |
download | wireguard-linux-9617cd6f24b294552a817f80f5225431ef67b540.tar.xz wireguard-linux-9617cd6f24b294552a817f80f5225431ef67b540.zip |
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-postgresql.py')
0 files changed, 0 insertions, 0 deletions