lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpXvxYxU5h_hv+kjRu8G9k5wEOYKsoTvaR8uYD65ZPW0Cw@mail.gmail.com>
Date:   Mon, 15 Jan 2018 22:30:55 -0800
From:   Cong Wang <xiyou.wangcong@...il.com>
To:     Eyal Birger <eyal.birger@...il.com>
Cc:     Linux Kernel Network Developers <netdev@...r.kernel.org>,
        Pablo Neira Ayuso <pablo@...filter.org>,
        Jamal Hadi Salim <jhs@...atatu.com>, coreteam@...filter.org,
        shmulik@...anetworks.com, Eyal Birger <eyal@...anetworks.com>
Subject: Re: [PATCH net-next 2/2] net: sched: add xfrm policy ematch

On Fri, Jan 12, 2018 at 4:57 AM, Eyal Birger <eyal.birger@...il.com> 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.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ