Changeset 695 for GPL/trunk/include/linux/slab.h
- Timestamp:
- Aug 21, 2021, 3:35:34 AM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-next merged: 691-694
- Property svn:mergeinfo changed
-
GPL/trunk/include/linux/slab.h
r679 r695 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, new_n*new_size, 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.