aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorAnthony Krowiak <[email protected]>2023-11-09 11:44:20 -0500
committerAlexander Gordeev <[email protected]>2023-11-30 16:24:22 +0100
commit7b2d039da622daa9ba259ac6f38701d542b237c3 (patch)
tree469062ef89e50b3dd3125ff083fbc1309abb4d44 /scripts/gdb/linux/utils.py
parent65f8780e2d70257200547b5a7654974aa7c37ce1 (diff)
s390/vfio-ap: unpin pages on gisc registration failure
In the vfio_ap_irq_enable function, after the page containing the notification indicator byte (NIB) is pinned, the function attempts to register the guest ISC. If registration fails, the function sets the status response code and returns without unpinning the page containing the NIB. In order to avoid a memory leak, the NIB should be unpinned before returning from the vfio_ap_irq_enable function. Co-developed-by: Janosch Frank <[email protected]> Signed-off-by: Janosch Frank <[email protected]> Signed-off-by: Anthony Krowiak <[email protected]> Reviewed-by: Matthew Rosato <[email protected]> Fixes: 783f0a3ccd79 ("s390/vfio-ap: add s390dbf logging to the vfio_ap_irq_enable function") Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexander Gordeev <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions