diff options
author | Jason Gunthorpe <[email protected]> | 2021-08-05 22:19:07 -0300 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2021-08-11 09:50:11 -0600 |
commit | 3cb24827147b75557bddc5b39d63897786935b14 (patch) | |
tree | 4b1dc7e88f644f777559fdc55f7c86ef0cc785b5 /tools/perf/scripts/python | |
parent | db44c17458fb54880b9a65479e464b64c365a87d (diff) |
vfio/mbochs: Fix close when multiple device FDs are open
mbochs_close() iterates over global device state and frees it. Currently
this is done every time a device FD is closed, but if multiple device FDs
are open this could corrupt other still active FDs.
Change this to use close_device() so it only runs on the last close.
Reviewed-by: Cornelia Huck <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions