summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorStanislav Kinsburskii <skinsburskii@linux.microsoft.com>2026-05-07 15:44:37 +0000
committerWei Liu <wei.liu@kernel.org>2026-07-23 00:19:50 +0000
commitac092ae422d67ed071f216c9fa10df8006e51019 (patch)
tree56b79991f2f25da4f8dcc625e7d7e77e21edb086 /scripts/objdiff
parentced1cad146f0d893920d2cf39e08200a08333920 (diff)
downloadlinux-next-ac092ae422d67ed071f216c9fa10df8006e51019.tar.gz
linux-next-ac092ae422d67ed071f216c9fa10df8006e51019.zip
mshv: Fix missing error code on VP allocation failure
In mshv_partition_ioctl_create_vp(), when kzalloc for the VP struct fails, the code jumps to the cleanup path without setting ret. At that point ret is 0 from the preceding successful mshv_vp_stats_map() call, so the function returns success to userspace despite having failed to create the VP. No fd is installed and no VP is registered in pt_vp_array, but userspace has no way to know the operation failed. Set ret to -ENOMEM before jumping to the cleanup path. Fixes: 621191d709b14 ("Drivers: hv: Introduce mshv_root module to expose /dev/mshv to VMMs") Signed-off-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com> Reviewed-by: Anirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com> Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions