Commit d2df9535 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

drivers/ipc: align pool memory on native page size

parent 2ba69d72
......@@ -569,7 +569,7 @@ static int __iddp_bind_socket(struct rtdm_fd *fd,
*/
poolsz = sk->poolsz;
if (poolsz > 0) {
poolsz = xnheap_rounded_size(poolsz);
poolsz = PAGE_ALIGN(poolsz);
poolmem = xnheap_vmalloc(poolsz);
if (poolmem == NULL) {
ret = -ENOMEM;
......
......@@ -691,8 +691,8 @@ static int __xddp_bind_socket(struct rtipc_private *priv,
poolsz = sk->poolsz;
if (poolsz > 0) {
poolsz = xnheap_rounded_size(poolsz);
poolsz += xnheap_rounded_size(sk->reqbufsz);
poolsz = PAGE_ALIGN(poolsz);
poolsz += PAGE_ALIGN(sk->reqbufsz);
poolmem = xnheap_vmalloc(poolsz);
if (poolmem == NULL) {
ret = -ENOMEM;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment