vfio/ccw: Use functions for alloc/free of the vfio_ccw_private
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 26 Oct 2021 17:57:31 +0000 (14:57 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 28 Oct 2021 17:06:31 +0000 (11:06 -0600)
commit0972c7dddf716a781dbe9abf4d042264b679ab53
tree94e4564bb3c225b9b166982c6156a3b00c97069f
parentd0a9329d460cbc2f8150da520b1b75e397bbef9f
vfio/ccw: Use functions for alloc/free of the vfio_ccw_private

Makes the code easier to understand what is memory lifecycle and what is
other stuff.

Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/2-v4-cea4f5bd2c00+b52-ccw_mdev_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/s390/cio/vfio_ccw_drv.c