lkml.org 
[lkml]   [2020]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: fix pointer table overallocation
On Sun, Aug 09, 2020 at 10:44:25PM +0300, Dmitry Osipenko wrote:
> 09.08.2020 22:21, Michał Mirosław пишет:
> > The code allocates sizeof(regulator_dev) for a pointer. Make it less
> > generous. Let kcalloc() calculate the size, while at it.
> >
> > Cc: stable@vger.kernel.org
> > Fixes: d8ca7d184b33 ("regulator: core: Introduce API for regulators coupling customization")

> Hello, Michał! Thank you for the patch! Not sure whether it's worthwhile
> to backport this change since it's an improvement, I'll leave it to Mark
> to decide, otherwise looks good to me.

Yeah, this is more a performance improvement than a fix.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-08-10 14:38    [W:0.046 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site