Drivers: hv: Check message and event pages for non-NULL before iounmap()
authorRoman Kisel <romank@linux.microsoft.com>
Wed, 8 Oct 2025 23:34:12 +0000 (16:34 -0700)
committerWei Liu <wei.liu@kernel.org>
Sat, 15 Nov 2025 06:18:15 +0000 (06:18 +0000)
commit09406f2f8466fe44894f444943134a09c8519e4f
tree394025012434ccb31b53de90c61591d75d1a9a4a
parent1bb15327d529a4e30f69b6c3486dfe8d7a753ff5
Drivers: hv: Check message and event pages for non-NULL before iounmap()

It might happen that some hyp SynIC pages aren't allocated.

Check for that and only then call iounmap().

Signed-off-by: Roman Kisel <romank@linux.microsoft.com>
Reviewed-by: Tianyu Lan <tiala@microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/hv.c