• Stephen Hemminger's avatar
    [NET] Dynamically allocate net_device structures for ROSE · 6ae0b08d
    Stephen Hemminger authored
    This patch changes the ROSE protocol to allocate an array of pointers and each network device
    separately.  This sets up later change where network_device object's are released on last use
    which may be after the module is unloaded.
    
    The patch is against 2.6.0-test2 (though this code hasn't changed in a long time).
    
    
    Allocation is done via alloc_netdev so the dev->priv area is already reserved and
    doesn't need to be allocated separately. 
    6ae0b08d
af_rose.c 35.7 KB