Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b08d5840 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NET]: Fix kfree(skb)

parent 4498121c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2037,7 +2037,7 @@ struct sk_buff *skb_segment(struct sk_buff *skb, int features)
err:
	while ((skb = segs)) {
		segs = skb->next;
		kfree(skb);
		kfree_skb(skb);
	}
	return ERR_PTR(err);
}
+1 −1
Original line number Diff line number Diff line
@@ -269,7 +269,7 @@ void dccp_write_xmit(struct sock *sk, int block)
					 err);
		} else {
			dccp_pr_debug("packet discarded\n");
			kfree(skb);
			kfree_skb(skb);
		}
	}
}
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ static int netlbl_unlabel_list(struct sk_buff *skb, struct genl_info *info)
	return 0;

list_failure:
	kfree(ans_skb);
	kfree_skb(ans_skb);
	return ret_val;
}

+1 −1
Original line number Diff line number Diff line
@@ -1401,7 +1401,7 @@ static int xfrm_get_ae(struct sk_buff *skb, struct nlmsghdr *nlh,

	x = xfrm_state_lookup(&id->daddr, id->spi, id->proto, id->family);
	if (x == NULL) {
		kfree(r_skb);
		kfree_skb(r_skb);
		return -ESRCH;
	}