[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHC9VhRsDdFohpmDkD2JGCnz5v3Tg7NHQDF7g8gCOj7_6D6jfg@mail.gmail.com>
Date:   Fri, 11 Nov 2016 21:29:21 -0500
From:   Paul Moore <paul@...l-moore.com>
To:     Shailendra Verma <shailendra.v@...sung.com>
Cc:     Stephen Smalley <sds@...ho.nsa.gov>,
        Eric Paris <eparis@...isplace.org>,
        James Morris <james.l.morris@...cle.com>,
        "Serge E. Hallyn" <serge@...lyn.com>, selinux@...ho.nsa.gov,
        linux-security-module@...r.kernel.org,
        linux-kernel@...r.kernel.org,
        Shailendra Verma <shailendra.capricorn@...il.com>,
        vidushi.koul@...sung.com
Subject: Re: [PATCH] Security: selinux - Improvement in code readability when
On Fri, Nov 11, 2016 at 3:48 AM, Shailendra Verma
<shailendra.v@...sung.com> wrote:
> From: "Shailendra Verma" <shailendra.v@...sung.com>
>
> There is no need to call kfree() if memdup_user() fails, as no memory
> was allocated and the error in the error-valued pointer should be returned.
>
> Signed-off-by: Shailendra Verma <shailendra.v@...sung.com>
> ---
>  security/selinux/selinuxfs.c |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
Hello Shailendra,
Thank you for your patch, but I prefer the readability of the code as
it currently stands.
-- 
paul moore
www.paul-moore.com
Powered by blists - more mailing lists
 
