mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
ffe6176b7f
Modules registering driver with register_virtio_driver() might forget to set .owner field. i2c-virtio.c for example has it missing. The field is used by some other kernel parts for reference counting (try_module_get()), so it is expected that drivers will set it. Solve the problem by moving this task away from the drivers to the core virtio code, just like we did for platform_driver in commit |
||
---|---|---|
.. | ||
index.rst | ||
virtio.rst | ||
writing_virtio_drivers.rst |