diff options
author | Jason J. Herne <jjherne@linux.ibm.com> | 2022-10-21 16:50:02 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2022-10-26 14:47:31 +0200 |
commit | e38de4804421b064a9c73c5a9b7f3df96b863e4b (patch) | |
tree | 0f585f354158156b4aa830987e11c85a0c7bd4ef /MAINTAINERS | |
parent | s390/cio: fix out-of-bounds access on cio_ignore free (diff) | |
download | linux-e38de4804421b064a9c73c5a9b7f3df96b863e4b.tar.xz linux-e38de4804421b064a9c73c5a9b7f3df96b863e4b.zip |
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/20221021145905.15100-1-jjherne@linux.ibm.com
Fixes: da44c340c4fe ("vfio/mdev: simplify mdev_type handling")
Cc: stable@vger.kernel.org
Cc: Tony Krowiak <akrowiak@linux.ibm.com>
Reported-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Jason J. Herne <jjherne@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions