Thread (15 messages) flat view 15 messages, 6 authors, 2020-11-03

Re: [PATCH v2 8/8] dma-buf: use krealloc_array()

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2020-11-02 16:09:25
Also in: alsa-devel, dri-devel, kvm, linux-edac, linux-gpio, linux-media, linux-mm, lkml, virtualization

On Mon, Nov 02, 2020 at 04:20:37PM +0100, Bartosz Golaszewski wrote:
From: Bartosz Golaszewski <redacted>

Use the helper that checks for overflows internally instead of manually
calculating the size of the new array.
...
+		nfences = krealloc_array(fences, i,
+					 sizeof(*fences), GFP_KERNEL);
On 80 position is closing parenthesis, which, I think, makes it okay to put on
one line.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help