Changeset 692 for GPL/branches/uniaud32-next/include/linux/slab.h
- Timestamp:
- Aug 14, 2021, 8:10:20 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/slab.h
r662 r692 106 106 } 107 107 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 */ 115 static __must_check inline void * 116 krealloc_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, bytes, flags); 124 } 125 108 126 #define kmalloc_node_track_caller(size, flags, node) \ 109 127 kmalloc_track_caller(size, flags)
Note:
See TracChangeset
for help on using the changeset viewer.