diff options
| author | Jiale Yao <yaojiale02@163.com> | 2026-10-18 11:46:16 +0800 |
|---|---|---|
| committer | Wei Liu <wei.liu@kernel.org> | 2026-10-21 00:55:04 -0700 |
| commit | 60de22022fe0cb37bdec608d60d53292050903d5 (patch) | |
| tree | 5b30d9c371512f8f6dd31d5ffe9cc3e9121d2bcd /scripts/basic | |
| parent | daa782262efe0de83e61e7b0d2862fc377f5226d (diff) | |
| download | linux-60de22022fe0cb37bdec608d60d53292050903d5.tar.gz linux-60de22022fe0cb37bdec608d60d53292050903d5.zip | |
mshv_vtl: initialize poll file mutex before device registration
mshv_vtl_init() registers /dev/mshv before initializing the poll file
mutex. A concurrent MSHV_SET_POLL_FILE ioctl can therefore attempt to lock
an uninitialized mutex while module initialization is still in progress.
Initialize the file-scope mutex statically so it is ready before the misc
device becomes visible.
Fixes: 7bfe3b8ea6e3 ("Drivers: hv: Introduce mshv_vtl driver")
Signed-off-by: Jiale Yao <yaojiale02@163.com>
Reviewed-by: Naman Jain <namjain@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
