Skip to content

Commit 3382605

Browse files
Jon Maloydavem330
authored andcommitted
tipc: correct initialization of skb list
We change the initialization of the skb transmit buffer queues in the functions tipc_bcast_xmit() and tipc_rcast_xmit() to also initialize their spinlocks. This is needed because we may, during error conditions, need to call skb_queue_purge() on those queues further down the stack. Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3d0241d commit 3382605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/tipc/bcast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ static int tipc_bcast_xmit(struct net *net, struct sk_buff_head *pkts,
233233
struct sk_buff_head xmitq;
234234
int rc = 0;
235235

236-
__skb_queue_head_init(&xmitq);
236+
skb_queue_head_init(&xmitq);
237237
tipc_bcast_lock(net);
238238
if (tipc_link_bc_peers(l))
239239
rc = tipc_link_xmit(l, pkts, &xmitq);
@@ -263,7 +263,7 @@ static int tipc_rcast_xmit(struct net *net, struct sk_buff_head *pkts,
263263
u32 dst, selector;
264264

265265
selector = msg_link_selector(buf_msg(skb_peek(pkts)));
266-
__skb_queue_head_init(&_pkts);
266+
skb_queue_head_init(&_pkts);
267267

268268
list_for_each_entry_safe(n, tmp, &dests->list, list) {
269269
dst = n->value;

0 commit comments

Comments
 (0)