diff options
author | Jason J. Herne <[email protected]> | 2022-10-21 10:50:02 -0400 |
---|---|---|
committer | Vasily Gorbik <[email protected]> | 2022-10-26 14:47:31 +0200 |
commit | e38de4804421b064a9c73c5a9b7f3df96b863e4b (patch) | |
tree | 0f585f354158156b4aa830987e11c85a0c7bd4ef /lib/mpi/mpi-sub-ui.c | |
parent | 1b6074112742f65ece71b0f299ca5a6a887d2db6 (diff) |
s390/vfio-ap: Fix memory allocation for mdev_types array
The vfio-ap crypto driver fails to allocate memory for an array of
pointers used to pass supported mdev types to mdev_register_parent().
Since we only support a single mdev type, the fix is to allocate a
single entry in the ap_matrix_dev->mdev_types array.
Link: https://lore.kernel.org/r/[email protected]
Fixes: da44c340c4fe ("vfio/mdev: simplify mdev_type handling")
Cc: [email protected]
Cc: Tony Krowiak <[email protected]>
Reported-by: Christian Borntraeger <[email protected]>
Reviewed-by: Matthew Rosato <[email protected]>
Signed-off-by: Jason J. Herne <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions