Unverified Commit 1759a1ee authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8550 tipc: fix a possible memleak in tipc_buf_append

parents 6c23d110 02ad8175
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -148,9 +148,9 @@ int tipc_buf_append(struct sk_buff **headbuf, struct sk_buff **buf)
	if (fragid == FIRST_FRAGMENT) {
		if (unlikely(head))
			goto err;
		*buf = NULL;
		if (skb_has_frag_list(frag) && __skb_linearize(frag))
			goto err;
		*buf = NULL;
		frag = skb_unshare(frag, GFP_ATOMIC);
		if (unlikely(!frag))
			goto err;