aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorXiaoguang Wang <[email protected]>2024-11-05 13:35:18 +0000
committerMichael S. Tsirkin <[email protected]>2024-11-06 09:40:07 +0000
commit4e39ecadf1d2a08187139619f1f314b64ba7d947 (patch)
tree69b018b74e54ff3a306af2ddbd50f3abdfd2c405 /drivers/platform/x86/intel/pmt/class.c
parentvirtio_pci: Fix admin vq cleanup by using correct info pointer (diff)
downloadkernel-4e39ecadf1d2a08187139619f1f314b64ba7d947.tar.gz
kernel-4e39ecadf1d2a08187139619f1f314b64ba7d947.zip
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: [email protected] Suggested-by: Parav Pandit <[email protected]> Signed-off-by: Angus Chen <[email protected]> Signed-off-by: Xiaoguang Wang <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Parav Pandit <[email protected]> Acked-by: Jason Wang <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions