Home
last modified time | relevance | path

Searched hist:"71 ab6a7cfbae27f86a3901daab10bfe13b3a1e3a" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.cdiff 71ab6a7cfbae27f86a3901daab10bfe13b3a1e3a Sun May 30 04:03:49 CDT 2021 Eli Cohen <elic@nvidia.com> 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: 1a86b377aa21 ("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>