Skip to content

Initialise the owner field in struct file_operations #214

Open
@wedsonaf

Description

@wedsonaf

It is used to increment the refcount on the module when a file is opened. This ensures that the module is not unloaded while there are files using it; if we don't initialise this field, we don't get this protection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    • libRelated to the `rust/` library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions