diff options
| author | Johan Hovold <johan@kernel.org> | 2026-04-27 17:37:10 +0300 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-06-10 09:14:02 +0300 |
| commit | c687bc35694698ec4c7f92bf929c3d659f0cecb8 (patch) | |
| tree | d26169d780f7ab2b55c99cbff0d60ede38039c25 /include/uapi | |
| parent | 929e4f044621c8cc30b612fb74e1410bef09e41b (diff) | |
| download | linux-c687bc35694698ec4c7f92bf929c3d659f0cecb8.tar.xz | |
virtio-mmio: fix device release warning on module unload
Driver core expects devices to be allocated dynamically and complains
loudly when a device that lacks a release function is freed.
Use __root_device_register() to allocate and register the root device
instead of open coding using a static device.
Note that root_device_register(), which also creates a link to the
module, cannot be used as the device is registered when parsing the
module parameters which happens before the module kobject has been set
up.
Fixes: 81a054ce0b46 ("virtio-mmio: Devices parameter parsing")
Cc: stable@vger.kernel.org # 3.5
Cc: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260427143710.14702-1-johan@kernel.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions
