diff options
author | Zhu Lingshan <lingshan.zhu@intel.com> | 2022-11-25 17:57:22 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-02-21 03:26:55 +0300 |
commit | 93139037b582134deb1ed894bbc4bc1d34ff35e7 (patch) | |
tree | 41165b04f25326aaaf8763ffa64b819f709e8ffb /mm | |
parent | 6a3b2f179b49f2c6452ecc37b4778a43848b454c (diff) | |
download | linux-93139037b582134deb1ed894bbc4bc1d34ff35e7.tar.xz |
vDPA/ifcvf: allocate the adapter in dev_add()
The adapter is the container of the vdpa_device,
this commits allocate the adapter in dev_add()
rather than in probe(). So that the vdpa_device()
could be re-created when the userspace creates
the vdpa device, and free-ed in dev_del()
Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Cc: stable@vger.kernel.org
Message-Id: <20221125145724.1129962-11-lingshan.zhu@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions