On Wed, Aug 28, 2024 at 6:33 PM Alejandro Colomar <alx@xxxxxxxxxx> wrote: > > On Wed, Aug 28, 2024 at 12:32:53PM GMT, Alejandro Colomar wrote: > > On Wed, Aug 28, 2024 at 11:03:19AM GMT, Yafang Shao wrote: > > > These three functions follow the same pattern. To deduplicate the code, > > > let's introduce a common helper __kmemdup_nul(). > > > > > > Suggested-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> > > > Signed-off-by: Yafang Shao <laoar.shao@xxxxxxxxx> > > > Cc: Simon Horman <horms@xxxxxxxxxx> > > > Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> > > > Cc: Alejandro Colomar <alx@xxxxxxxxxx> > > > --- > > > > Reviewed-by: Alejandro Colomar <alx@xxxxxxxxxx> > > (Or maybe I should say > > Co-developed-by: Alejandro Colomar <alx@xxxxxxxxxx> > Signed-off-by: Alejandro Colomar <alx@xxxxxxxxxx> I will add it. Thanks for your help. -- Regards Yafang