summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorCarlos López <clopez@suse.de>2026-03-13 13:20:39 +0100
committerSean Christopherson <seanjc@google.com>2026-05-13 11:04:47 -0700
commit9a7ff263922e7163d0def5d35948e6b6545449f6 (patch)
tree6216eddef3c6a3df81284f5cf4251fa89b13d205 /scripts/stackusage
parentb7fbe9a1bf9ee6c967ef77d366ca58c35fcf1887 (diff)
KVM: VFIO: clean up control flow in kvm_vfio_file_add()
The struct file that this function fgets() is always passed to fput() before returning, so use automatic cleanup via __free() to avoid several jumps to the end of the function. Similarly, use a mutex guard to completely remove the need to use gotos. Signed-off-by: Carlos López <clopez@suse.de> Reviewed-by: Alex Williamson <alex@shazbot.org> Link: https://patch.msgid.link/20260313122040.1413091-4-clopez@suse.de Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions