aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2024-04-06 17:09:25 +0800
committerChristian Brauner <brauner@kernel.org>2024-04-11 11:14:36 +0200
commit9617cd6f24b294552a817f80f5225431ef67b540 (patch)
tree6edfc794ad4e0c47ef1836516c188cdb79d9d55a /fs
parentabe6acfa7d7b666d785eae706bd34b63f3c2b11f (diff)
downloadlinux-9617cd6f24b294552a817f80f5225431ef67b540.tar.gz
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 'fs')
0 files changed, 0 insertions, 0 deletions