Re: [PATCH] Security: selinux - Improvement in code readability when

2016-11-11 Thread Paul Moore
On Fri, Nov 11, 2016 at 3:48 AM, Shailendra Verma wrote: > From: "Shailendra Verma" > > 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 > --- > security/selinu

[PATCH] Security: selinux - Improvement in code readability when

2016-11-11 Thread Shailendra Verma
From: "Shailendra Verma" 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 --- security/selinux/selinuxfs.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions