diff options
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -3269,8 +3269,8 @@ void *__kmalloc_track_caller(size_t size, gfp_t gfpflags, unsigned long caller) | |||
3269 | ret = slab_alloc(s, gfpflags, -1, caller); | 3269 | ret = slab_alloc(s, gfpflags, -1, caller); |
3270 | 3270 | ||
3271 | /* Honor the call site pointer we recieved. */ | 3271 | /* Honor the call site pointer we recieved. */ |
3272 | kmemtrace_mark_alloc(KMEMTRACE_TYPE_KMALLOC, (unsigned long) caller, | 3272 | kmemtrace_mark_alloc(KMEMTRACE_TYPE_KMALLOC, caller, ret, size, |
3273 | ret, size, s->size, gfpflags); | 3273 | s->size, gfpflags); |
3274 | 3274 | ||
3275 | return ret; | 3275 | return ret; |
3276 | } | 3276 | } |
@@ -3292,8 +3292,7 @@ void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags, | |||
3292 | ret = slab_alloc(s, gfpflags, node, caller); | 3292 | ret = slab_alloc(s, gfpflags, node, caller); |
3293 | 3293 | ||
3294 | /* Honor the call site pointer we recieved. */ | 3294 | /* Honor the call site pointer we recieved. */ |
3295 | kmemtrace_mark_alloc_node(KMEMTRACE_TYPE_KMALLOC, | 3295 | kmemtrace_mark_alloc_node(KMEMTRACE_TYPE_KMALLOC, caller, ret, |
3296 | (unsigned long) caller, ret, | ||
3297 | size, s->size, gfpflags, node); | 3296 | size, s->size, gfpflags, node); |
3298 | 3297 | ||
3299 | return ret; | 3298 | return ret; |