|
@@ -1,5 +1,6 @@
|
|
/*
|
|
/*
|
|
* Copyright (c) 2018, 2021 The Linux Foundation. All rights reserved.
|
|
* Copyright (c) 2018, 2021 The Linux Foundation. All rights reserved.
|
|
|
|
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -64,7 +65,7 @@ __qdf_zalloc_auto(const size_t size, const char *func, const uint16_t line)
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
|
|
- qdf_mem_kmalloc_inc(__alloc_size(ptr));
|
|
|
|
|
|
+ qdf_mem_kmalloc_inc(__qdf_alloc_size(ptr));
|
|
|
|
|
|
return ptr;
|
|
return ptr;
|
|
}
|
|
}
|
|
@@ -80,14 +81,14 @@ __qdf_zalloc_atomic(const size_t size, const char *func, const uint16_t line)
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
|
|
- qdf_mem_kmalloc_inc(__alloc_size(ptr));
|
|
|
|
|
|
+ qdf_mem_kmalloc_inc(__qdf_alloc_size(ptr));
|
|
|
|
|
|
return ptr;
|
|
return ptr;
|
|
}
|
|
}
|
|
|
|
|
|
static void __qdf_free(const void *ptr)
|
|
static void __qdf_free(const void *ptr)
|
|
{
|
|
{
|
|
- qdf_mem_kmalloc_dec(__alloc_size(ptr));
|
|
|
|
|
|
+ qdf_mem_kmalloc_dec(__qdf_alloc_size(ptr));
|
|
|
|
|
|
__free(ptr);
|
|
__free(ptr);
|
|
}
|
|
}
|