diff options
author | Yu Kuai <[email protected]> | 2024-04-06 17:09:25 +0800 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2024-04-11 11:14:36 +0200 |
commit | 9617cd6f24b294552a817f80f5225431ef67b540 (patch) | |
tree | 6edfc794ad4e0c47ef1836516c188cdb79d9d55a /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | abe6acfa7d7b666d785eae706bd34b63f3c2b11f (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions