diff options
| author | Jason Gunthorpe <[email protected]> | 2021-08-06 01:19:07 +0000 |
|---|---|---|
| committer | Alex Williamson <[email protected]> | 2021-08-11 15:50:11 +0000 |
| commit | 3cb24827147b75557bddc5b39d63897786935b14 (patch) | |
| tree | 4b1dc7e88f644f777559fdc55f7c86ef0cc785b5 /fs/ext4/fast_commit.c | |
| parent | vfio/pci: Reorganize VFIO_DEVICE_PCI_HOT_RESET to use the device set (diff) | |
| download | kernel-3cb24827147b75557bddc5b39d63897786935b14.tar.gz kernel-3cb24827147b75557bddc5b39d63897786935b14.zip | |
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 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions
