diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-08-08 12:32:41 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-08-10 09:01:21 -0400 |
commit | 2874211fcdb751e2962d68cdb9783fa1ff8eb340 (patch) | |
tree | 051f16c6d1cf569dae8360287149970ed365b78a /drivers/net | |
parent | f31231bf26a523de8aad4488643a98174c0d6bb2 (diff) | |
download | linux-stable-2874211fcdb751e2962d68cdb9783fa1ff8eb340.tar.gz linux-stable-2874211fcdb751e2962d68cdb9783fa1ff8eb340.tar.bz2 linux-stable-2874211fcdb751e2962d68cdb9783fa1ff8eb340.zip |
vdpa/mlx5: Fix pointer math in mlx5_vdpa_get_config()
There is a pointer math bug here so if "offset" is non-zero then this
will copy memory from beyond the end of the array.
Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200808093241.GB115053@mwanda
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Eli Cohen <elic@nvidia.com>
Cc: Jason Wang <jasowang@redhat.com>; Parav Pandit <parav@mellanox.com>; virtualization@lists.linux-foundation.org; linux-kernel@vger.kernel.org; kernel-janitors@vger.kernel.org
Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions