]> git.ipfire.org Git - thirdparty/linux.git/commit
mshv: Initialize local variables early upon region invalidation
authorStanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Wed, 10 Dec 2025 17:55:47 +0000 (17:55 +0000)
committerWei Liu <wei.liu@kernel.org>
Mon, 15 Dec 2025 18:31:45 +0000 (18:31 +0000)
commitbeb15a6036fecbdc23191f09e4cd57558b0db508
treec124f7764cfa6a0def15b72a514fd2fa9f8ee353
parent3a2bcc127e6beb9c3c1e4760110275588cf322bf
mshv: Initialize local variables early upon region invalidation

Ensure local variables are initialized before use so that the warning can
print the right values if locking the region to invalidate fails due to
inability to lock the region.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Fixes: b9a66cd5ccbb ("mshv: Add support for movable memory regions")
Signed-off-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/mshv_regions.c