Skip to content
  • Pavel Emelyanov's avatar
    [INET]: Consolidate xxx_frag_alloc() · e521db9d
    Pavel Emelyanov authored
    
    
    Just perform the kzalloc() allocation and setup common
    fields in the inet_frag_queue(). Then return the result
    to the caller to initialize the rest.
    
    The inet_frag_alloc() may return NULL, so check the 
    return value before doing the container_of(). This looks 
    ugly, but the xxx_frag_alloc() will be removed soon.
    
    The xxx_expire() timer callbacks are patches, 
    because the argument is now the inet_frag_queue, not 
    the protocol specific queue.
    
    Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    e521db9d