]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: s390: ucontrol: Fix memslot handling
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Thu, 2 Apr 2026 15:01:35 +0000 (17:01 +0200)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Tue, 7 Apr 2026 15:20:42 +0000 (17:20 +0200)
commit9b8e8aad5896d66005d29920cb1643076a20b172
tree22a60eb71b8d41095c7bd83e3e6a07e0ffe946d0
parent857e92662c07543887dafdb14b127519f4c0ac93
KVM: s390: ucontrol: Fix memslot handling

Fix memslots handling for UCONTROL guests. Attempts to delete user
memslots will fail, as they should, without the risk of a NULL pointer
dereference.

Fixes: 413c98f24c63 ("KVM: s390: fake memslot for ucontrol VMs")
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
arch/s390/kvm/kvm-s390.c