lkml.org 
[lkml]   [2018]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [net] xfrm_user: use xfrm_state_put to free xfrm_state_alloc return value
On Thu, Nov 22, 2018 at 10:43:21PM +0800, Herbert Xu wrote:
> On Wed, Nov 21, 2018 at 09:09:23PM +0100, Mathias Krause wrote:
> >
> > -- >8 --
> >
> > Subject: [PATCH] xfrm_user: fix freeing of xfrm states on acquire
> >
> > Commit 565f0fa902b6 ("xfrm: use a dedicated slab cache for struct
> > xfrm_state") moved xfrm state objects to use their own slab cache.
> > However, it missed to adapt xfrm_user to use this new cache when
> > freeing xfrm states.
> >
> > Fix this by introducing and make use of a new helper for freeing
> > xfrm_state objects.
> >
> > Fixes: 565f0fa902b6 ("xfrm: use a dedicated slab cache for struct xfrm_state")
> > Reported-by: Pan Bian <bianpan2016@163.com>
> > Cc: <stable@vger.kernel.org> # v4.18+
> > Signed-off-by: Mathias Krause <minipli@googlemail.com>
>
> Acked-by: Herbert Xu <herbert@gondor.apana.org.au>

Applied, thanks everyone!

\
 
 \ /
  Last update: 2018-11-27 08:56    [W:0.211 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site