On Mon, Nov 02, 2020 at 04:20:37PM +0100, Bartosz Golaszewski wrote:> From: Bartosz Golaszewski <bgolaszewski at baylibre.com> > > 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
Apparently Analagous Threads
- [PATCH v2 0/8] slab: provide and use krealloc_array()
- [PATCH v2 0/8] slab: provide and use krealloc_array()
- [PATCH v2 1/8] mm: slab: provide krealloc_array()
- [PATCH v1] virtio_blk: Use sysfs_match_string() helper
- [PATCH v1] virtio_blk: Use sysfs_match_string() helper