Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55150
b: refs/heads/master
c: 215d067
h: refs/heads/master
v: v3
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed May 8, 2007
1 parent 87ddf5d commit a227e65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60c9b2746f589b0b809582b0471cf30ad3ae439f
refs/heads/master: 215d06780d13fd7de629b02b61b7b7bf88ce5039
8 changes: 4 additions & 4 deletions trunk/net/sunrpc/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,9 +763,9 @@ void *rpc_malloc(struct rpc_task *task, size_t size)
else
buf = kmalloc(size, gfp);
*buf = size;
dprintk("RPC: %5u allocated buffer of size %u at %p\n",
dprintk("RPC: %5u allocated buffer of size %zu at %p\n",
task->tk_pid, size, buf);
return (void *) ++buf;
return ++buf;
}

/**
Expand All @@ -775,14 +775,14 @@ void *rpc_malloc(struct rpc_task *task, size_t size)
*/
void rpc_free(void *buffer)
{
size_t size, *buf = (size_t *) buffer;
size_t size, *buf = buffer;

if (!buffer)
return;
size = *buf;
buf--;

dprintk("RPC: freeing buffer of size %u at %p\n",
dprintk("RPC: freeing buffer of size %zu at %p\n",
size, buf);
if (size <= RPC_BUFFER_MAXSIZE)
mempool_free(buf, rpc_buffer_mempool);
Expand Down

0 comments on commit a227e65

Please sign in to comment.