From 556a7f6cf2f876827b4dc5dd90fa99d78a0ef052 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 6 Apr 2019 23:16:51 +0000 Subject: [PATCH] scst: Support the SLUB allocator Although the SLAB allocator exports the kmalloc_track_caller() function, the SLUB allocator does not. Hence use kmalloc() instead of kmalloc_track_caller(). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8163 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 2 +- scst/src/scst_lib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 6b2273ced..67ab63fcb 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -1402,7 +1402,7 @@ static inline void *memdup_user_nul(const void __user *src, size_t len) { char *p; - p = kmalloc_track_caller(len + 1, GFP_KERNEL); + p = kmalloc(len + 1, GFP_KERNEL); if (!p) return ERR_PTR(-ENOMEM); diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index b023da399..96274fa7a 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -118,7 +118,7 @@ char *kvasprintf(gfp_t gfp, const char *fmt, va_list ap) len = vsnprintf(NULL, 0, fmt, aq); va_end(aq); - p = kmalloc_track_caller(len + 1, gfp); + p = kmalloc(len + 1, gfp); if (!p) return NULL;