]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa: ifcvf: set pci driver data in probe
authorJason Wang <jasowang@redhat.com>
Tue, 24 May 2022 05:55:57 +0000 (13:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:13 +0000 (18:36 +0200)
commit96612a49b0fe13daff0ace4beb0a6689da52bc6d
tree9ab691496303e022e249bc2bc1400acb0658485f
parent72c738d4bb8ac2dcf5b5aa86017b88f37c46f694
vdpa: ifcvf: set pci driver data in probe

[ Upstream commit 539890357d72170951b134effda8c91a6a757f6e ]

We should set the pci driver data in probe instead of the vdpa device
adding callback. Otherwise if no vDPA device is created we will lose
the pointer to the management device.

Fixes: 9e1b75f5c3728 ("vDPA/ifcvf: implement management netlink framework for ifcvf")
Tested-by: Zheyu Ma <zheyuma97@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220524055557.1938-1-jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vdpa/ifcvf/ifcvf_main.c