diff options
author | Xiaoguang Wang | 2024-11-05 21:35:18 +0800 |
---|---|---|
committer | Michael S. Tsirkin | 2024-11-06 04:40:07 -0500 |
commit | 4e39ecadf1d2a08187139619f1f314b64ba7d947 (patch) | |
tree | 69b018b74e54ff3a306af2ddbd50f3abdfd2c405 /net/xfrm | |
parent | 97ee04feb682c906a1fa973ebe586fe91567d165 (diff) |
vp_vdpa: fix id_table array not null terminated error
Allocate one extra virtio_device_id as null terminator, otherwise
vdpa_mgmtdev_get_classes() may iterate multiple times and visit
undefined memory.
Fixes: ffbda8e9df10 ("vdpa/vp_vdpa : add vdpa tool support in vp_vdpa")
Cc: stable@vger.kernel.org
Suggested-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Angus Chen <angus.chen@jaguarmicro.com>
Signed-off-by: Xiaoguang Wang <lege.wang@jaguarmicro.com>
Message-Id: <20241105133518.1494-1-lege.wang@jaguarmicro.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/xfrm')
0 files changed, 0 insertions, 0 deletions