Ignore:
Timestamp:
Aug 21, 2021, 3:35:34 AM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/include/linux/slab.h

    r679 r695  
    106106}
    107107
     108/**
     109 * krealloc_array - reallocate memory for an array.
     110 * @p: pointer to the memory chunk to reallocate
     111 * @new_n: new number of elements to alloc
     112 * @new_size: new size of a single member of the array
     113 * @flags: the type of memory to allocate (see kmalloc)
     114 */
     115static __must_check inline void *
     116krealloc_array(void *p, size_t new_n, size_t new_size, gfp_t flags)
     117{
     118//      size_t bytes;
     119
     120//      if (check_mul_overflow(new_n, new_size, &bytes))
     121//              return NULL;
     122
     123        return krealloc(p, new_n*new_size, flags);
     124}
     125
    108126#define kmalloc_node_track_caller(size, flags, node) \
    109127        kmalloc_track_caller(size, flags)
Note: See TracChangeset for help on using the changeset viewer.