diff options
author | Parav Pandit <[email protected]> | 2022-06-13 22:52:23 +0300 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2022-06-24 02:49:48 -0400 |
commit | 0e0348ac3f0a6e6606f1aa5acb1803ada913aa3d (patch) | |
tree | a83a2d6b44c73b0dcd5371b2c81a4387bf9f0049 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | ace9252446ec615cd79a5f77d90edb25c0b9d024 (diff) |
vduse: Tie vduse mgmtdev and its device
vduse devices are not backed by any real devices such as PCI. Hence it
doesn't have any parent device linked to it.
Kernel driver model in [1] suggests to avoid an empty device
release callback.
Hence tie the mgmtdevice object's life cycle to an allocate dummy struct
device instead of static one.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/core-api/kobject.rst?h=v5.18-rc7#n284
Signed-off-by: Parav Pandit <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Xie Yongji <[email protected]>
Acked-by: Jason Wang <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions