virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <20201027121725.24660-4-brgl@bgdev.pl>]
  • [parent not found: <20201027121725.24660-2-brgl@bgdev.pl>]
  • [parent not found: <20201027121725.24660-6-brgl@bgdev.pl>]
  • [parent not found: <20201027121725.24660-7-brgl@bgdev.pl>]
  • * Re: [PATCH 0/8] slab: provide and use krealloc_array()
           [not found] <20201027121725.24660-1-brgl@bgdev.pl>
                       ` (4 preceding siblings ...)
           [not found] ` <20201027121725.24660-7-brgl@bgdev.pl>
    @ 2020-11-05 10:52 ` Linus Walleij
      5 siblings, 0 replies; 8+ messages in thread
    From: Linus Walleij @ 2020-11-05 10:52 UTC (permalink / raw)
      To: Bartosz Golaszewski
      Cc: moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
    	kvm, Michael S . Tsirkin, David Airlie, Gustavo Padovan,
    	open list:DRM PANEL DRIVERS, Jaroslav Kysela,
    	Linux Memory Management List, Christoph Lameter, Sumit Semwal,
    	Mauro Carvalho Chehab, Bartosz Golaszewski, Alexander Shishkin,
    	David Rientjes, virtualization, Linux Media Mailing List,
    	Robert Richter, Thomas Zimmermann, Maarten Lankhorst,
    	Maxime Ripard, linaro-mm-sig, open list:GPIO SUBSYSTEM,
    	Borislav Petkov, Andy Shevchenko, Joonsoo Kim, linux-edac,
    	Tony Luck, netdev, Takashi Iwai, linux-kernel@vger.kernel.org,
    	Pekka Enberg, James Morse, Daniel Vetter, Andrew Morton,
    	Christian König
    
    On Tue, Oct 27, 2020 at 1:17 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
    
    > From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
    >
    > Andy brought to my attention the fact that users allocating an array of
    > equally sized elements should check if the size multiplication doesn't
    > overflow. This is why we have helpers like kmalloc_array().
    >
    > However we don't have krealloc_array() equivalent and there are many
    > users who do their own multiplication when calling krealloc() for arrays.
    >
    > This series provides krealloc_array() and uses it in a couple places.
    >
    > A separate series will follow adding devm_krealloc_array() which is
    > needed in the xilinx adc driver.
    
    The series:
    Acked-by: Linus Walleij <linus.walleij@linaro.org>
    
    I really like this.
    
    Yours,
    Linus Walleij
    _______________________________________________
    Virtualization mailing list
    Virtualization@lists.linux-foundation.org
    https://lists.linuxfoundation.org/mailman/listinfo/virtualization
    
    ^ permalink raw reply	[flat|nested] 8+ messages in thread

  • end of thread, other threads:[~2020-11-05 10:52 UTC | newest]
    
    Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20201027121725.24660-1-brgl@bgdev.pl>
         [not found] ` <20201027121725.24660-9-brgl@bgdev.pl>
    2020-10-27 12:21   ` [PATCH 8/8] dma-buf: use krealloc_array() Christian König
         [not found] ` <20201027121725.24660-4-brgl@bgdev.pl>
    2020-10-27 15:28   ` [PATCH 3/8] vhost: vringh: " Michael S. Tsirkin
    2020-10-27 16:50     ` Joe Perches
         [not found]       ` <CAMpxmJU0C84DjPmqmWvPgv0zwgGLhkpKLRDuKkZHAa=wi+LvBA@mail.gmail.com>
    2020-10-27 17:08         ` Joe Perches
         [not found] ` <20201027121725.24660-2-brgl@bgdev.pl>
    2020-10-27 18:20   ` [PATCH 1/8] mm: slab: provide krealloc_array() Vlastimil Babka
         [not found] ` <20201027121725.24660-6-brgl@bgdev.pl>
    2020-10-27 18:25   ` [PATCH 5/8] edac: ghes: use krealloc_array() Borislav Petkov
         [not found] ` <20201027121725.24660-7-brgl@bgdev.pl>
    2020-10-27 19:19   ` [PATCH 6/8] drm: atomic: " Daniel Vetter
    2020-11-05 10:52 ` [PATCH 0/8] slab: provide and " Linus Walleij
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).