mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user