mirror of https://github.com/thesofproject/sof.git
host: fix rzalloc function
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
528ec8f3eb
commit
bacada5c6b
|
@ -46,10 +46,7 @@ void *rmalloc(int zone, uint32_t caps, size_t bytes)
|
|||
|
||||
void *rzalloc(int zone, uint32_t caps, size_t bytes)
|
||||
{
|
||||
void *x;
|
||||
|
||||
x = calloc(1, bytes);
|
||||
return x;
|
||||
return calloc(bytes, 1);
|
||||
}
|
||||
|
||||
void rfree(void *ptr)
|
||||
|
|
Loading…
Reference in New Issue