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

Commit d04631e7 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "netfilter: contrack: Null pointer check is added"

parents 1a5ca59c eb11987e
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -647,9 +647,12 @@ destroy_conntrack(struct nf_conntrack *nfct)

#ifdef CONFIG_NF_CONNTRACK_SIP_SEGMENTATION
	pr_debug("freeing item in the SIP list\n");

	if (ct->sip_segment_list.next)
		list_for_each_safe(sip_node_list, sip_node_save_list,
				   &ct->sip_segment_list) {
		sip_node = list_entry(sip_node_list, struct sip_list, list);
			sip_node = list_entry(sip_node_list,
					      struct sip_list, list);
			list_del(&sip_node->list);
			kfree(sip_node);
		}