linux/drivers/vdpa
Eli Cohen 71ab6a7cfb vdpa/mlx5: Fix possible failure in umem size calculation
umem size is a 32 bit unsigned value so assigning it to an int could
cause false failures. Set the calculated value inside the function and
modify function name to reflect the fact it updates the size.

This bug was found during code review but never had real impact to this
date.

Fixes: 1a86b377aa ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20210530090349.8360-1-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
2021-07-03 04:50:56 -04:00
..
ifcvf vDPA/ifcvf: reuse pre-defined macros for device ids and vendor ids 2021-07-03 04:50:51 -04:00
mlx5 vdpa/mlx5: Fix possible failure in umem size calculation 2021-07-03 04:50:56 -04:00
vdpa_sim vdpa_sim_blk: remove duplicate include of linux/blkdev.h 2021-07-03 04:50:50 -04:00
virtio_pci vp_vdpa: correct the return value when fail to map notification 2021-07-03 04:50:52 -04:00
Kconfig vdpa: add vdpa simulator for block device 2021-05-03 04:55:53 -04:00
Makefile vdpa: introduce virtio pci driver 2021-05-03 04:55:51 -04:00
vdpa.c vdpa: Follow kdoc comment style 2021-05-03 04:55:51 -04:00