• C
    tipc: ensure head->lock is initialised · d12cffe9
    Chris Packham 提交于
    tipc_named_node_up() creates a skb list. It passes the list to
    tipc_node_xmit() which has some code paths that can call
    skb_queue_purge() which relies on the list->lock being initialised.
    
    The spin_lock is only needed if the messages end up on the receive path
    but when the list is created in tipc_named_node_up() we don't
    necessarily know if it is going to end up there.
    
    Once all the skb list users are updated in tipc it will then be possible
    to update them to use the unlocked variants of the skb list functions
    and initialise the lock when we know the message will follow the receive
    path.
    Signed-off-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
    Acked-by: NJon Maloy <jon.maloy@ericsson.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    d12cffe9
name_distr.c 9.9 KB