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
This commit is contained in:
Bart Van Assche
2019-04-06 23:16:51 +00:00
parent 1c75b0fd84
commit 556a7f6cf2
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;