• M Chetan Kumar's avatar
    net: wwan: debugfs obtained dev reference not dropped · 76f05d88
    M Chetan Kumar authored
    WWAN driver call's wwan_get_debugfs_dir() to obtain
    WWAN debugfs dir entry. As part of this procedure it
    returns a reference to a found device.
    
    Since there is no debugfs interface available at WWAN
    subsystem, it is not possible to drop dev reference post
    debugfs use. This leads to side effects like post wwan
    driver load and reload the wwan instance gets increment
    from wwanX to wwanX+1.
    
    A new debugfs interface is added in wwan subsystem so that
    wwan driver can drop the obtained dev reference post debugfs
    use.
    
    void wwan_put_debugfs_dir(struct dentry *dir)
    Signed-off-by: default avatarM Chetan Kumar <m.chetan.kumar@linux.intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    76f05d88
wwan_core.c 28 KB