Thread (14 messages) flat view 14 messages, 3 authors, 2018-02-15

Re: [PATCH net-next 2/2] net: sched: add xfrm policy ematch

From: Cong Wang <hidden>
Date: 2018-01-16 06:31:16

On Fri, Jan 12, 2018 at 4:57 AM, Eyal Birger [off-list ref] wrote:
+static void em_policy_destroy(struct tcf_ematch *em)
+{
+       const struct xt_policy_info *info = (const void *)em->data;
+
+       if (!info)
+               return;
+
+       kfree((void *)em->data);
+}
Nit: kfree() could handle NULL, no need to check.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help