virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
  • * Re: [PATCH] vdpa/mlx5: Extract correct pointer from driver data
           [not found] <20210216055022.25248-1-elic@nvidia.com>
           [not found] ` <20210216055022.25248-2-elic@nvidia.com>
    @ 2021-02-23 12:32 ` Michael S. Tsirkin
      1 sibling, 0 replies; 4+ messages in thread
    From: Michael S. Tsirkin @ 2021-02-23 12:32 UTC (permalink / raw)
      To: Eli Cohen; +Cc: si-wei.liu, netdev, linux-kernel, virtualization
    
    On Tue, Feb 16, 2021 at 07:50:21AM +0200, Eli Cohen wrote:
    > struct mlx5_vdpa_net pointer was stored in drvdata. Extract it as well
    > in mlx5v_remove().
    > 
    > Fixes: 74c9729dd892 ("vdpa/mlx5: Connect mlx5_vdpa to auxiliary bus")
    > Signed-off-by: Eli Cohen <elic@nvidia.com>
    
    Sorry which tree this is for? Couldn't apply.
    
    > ---
    >  drivers/vdpa/mlx5/net/mlx5_vnet.c | 4 ++--
    >  1 file changed, 2 insertions(+), 2 deletions(-)
    > 
    > diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5/net/mlx5_vnet.c
    > index 6b0a42183622..4103d3b64a2a 100644
    > --- a/drivers/vdpa/mlx5/net/mlx5_vnet.c
    > +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c
    > @@ -2036,9 +2036,9 @@ static int mlx5v_probe(struct auxiliary_device *adev,
    >  
    >  static void mlx5v_remove(struct auxiliary_device *adev)
    >  {
    > -	struct mlx5_vdpa_dev *mvdev = dev_get_drvdata(&adev->dev);
    > +	struct mlx5_vdpa_net *ndev = dev_get_drvdata(&adev->dev);
    >  
    > -	vdpa_unregister_device(&mvdev->vdev);
    > +	vdpa_unregister_device(&ndev->mvdev.vdev);
    >  }
    >  
    >  static const struct auxiliary_device_id mlx5v_id_table[] = {
    > -- 
    > 2.29.2
    
    _______________________________________________
    Virtualization mailing list
    Virtualization@lists.linux-foundation.org
    https://lists.linuxfoundation.org/mailman/listinfo/virtualization
    
    ^ permalink raw reply	[flat|nested] 4+ messages in thread

  • end of thread, other threads:[~2021-02-23 12:33 UTC | newest]
    
    Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20210216055022.25248-1-elic@nvidia.com>
         [not found] ` <20210216055022.25248-2-elic@nvidia.com>
    2021-02-16  6:35   ` [PATCH] vdpa/mlx5: Extract correct pointer from driver data Leon Romanovsky
         [not found]     ` <20210216064226.GA83717@mtl-vdi-166.wap.labs.mlnx>
    2021-02-16  7:37       ` Leon Romanovsky
         [not found]         ` <20210216124540.GA94503@mtl-vdi-166.wap.labs.mlnx>
    2021-02-16 13:17           ` Leon Romanovsky
    2021-02-23 12:32 ` Michael S. Tsirkin
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).