diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2021-08-05 22:18:58 -0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2021-08-11 09:50:10 -0600 |
commit | de5494af4815a4c9328536c72741229b7de88e7f (patch) | |
tree | d7af67843eedbccdcae8425e877d8a32024ec9ed /samples/bpf/sock_flags_kern.c | |
parent | e1706f0764f8bea42db8d33df5d7f9e754b89693 (diff) | |
download | linux-de5494af4815a4c9328536c72741229b7de88e7f.tar.gz |
vfio/mbochs: Fix missing error unwind of mbochs_used_mbytes
Convert mbochs to use an atomic scheme for this like mtty was changed
into. The atomic fixes various race conditions with probing. Add the
missing error unwind. Also add the missing kfree of mdev_state->pages.
Fixes: 681c1615f891 ("vfio/mbochs: Convert to use vfio_register_group_dev()")
Reported-by: Cornelia Huck <cohuck@redhat.com>
Co-developed-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Link: https://lore.kernel.org/r/2-v4-9ea22c5e6afb+1adf-vfio_reflck_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'samples/bpf/sock_flags_kern.c')
0 files changed, 0 insertions, 0 deletions