summaryrefslogtreecommitdiffstats
path: root/sound/usb/midi2.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2024-01-09 17:15:33 -0800
committerSean Christopherson <seanjc@google.com>2024-02-06 11:04:58 -0800
commitc2744ed2230a92636f04cde48f2f7d8d3486e194 (patch)
tree92470a1cbed15e087f6dc915e8238519926295a9 /sound/usb/midi2.c
parent8284765f03b7a0b18968cefeb5e78aca647b8f8b (diff)
downloadlinux-stable-c2744ed2230a92636f04cde48f2f7d8d3486e194.tar.gz
linux-stable-c2744ed2230a92636f04cde48f2f7d8d3486e194.tar.bz2
linux-stable-c2744ed2230a92636f04cde48f2f7d8d3486e194.zip
KVM: Nullify async #PF worker's "apf" pointer as soon as it might be freed
Nullify the async #PF worker's local "apf" pointer immediately after the point where the structure can be freed by the vCPU. The existing comment is helpful, but easy to overlook as there is no associated code. Update the comment to clarify that it can be freed by as soon as the lock is dropped, as "after this point" isn't strictly accurate, nor does it help understand what prevents the structure from being freed earlier. Reviewed-by: Xu Yilun <yilun.xu@intel.com> Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Link: https://lore.kernel.org/r/20240110011533.503302-5-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'sound/usb/midi2.c')
0 files changed, 0 insertions, 0 deletions