Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73239
b: refs/heads/master
c: 57002bf
h: refs/heads/master
i:
  73237: d70d1d1
  73235: b7f7fde
  73231: 566e03e
v: v3
  • Loading branch information
Stephen Rothwell authored and James Morris committed Nov 7, 2007
1 parent 1cd2c4f commit 91c49d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 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: e4fc5a1a2acab67867c9858cd4c8e9abb5b242f7
refs/heads/master: 57002bfb31283e84f694763ed4db0fb761b7d6a9
2 changes: 1 addition & 1 deletion trunk/arch/frv/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void __init mem_init(void)
/*
* free the memory that was only required for initialisation
*/
void free_initmem(void)
void __init free_initmem(void)
{
#if defined(CONFIG_RAMKERNEL) && !defined(CONFIG_PROTECT_KERNEL)
unsigned long start, end, addr;
Expand Down
13 changes: 7 additions & 6 deletions trunk/security/selinux/xfrm.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,26 +211,27 @@ static int selinux_xfrm_sec_ctx_alloc(struct xfrm_sec_ctx **ctxp,
if (uctx->ctx_doi != XFRM_SC_ALG_SELINUX)
return -EINVAL;

if (uctx->ctx_len >= PAGE_SIZE)
str_len = uctx->ctx_len;
if (str_len >= PAGE_SIZE)
return -ENOMEM;

*ctxp = ctx = kmalloc(sizeof(*ctx) +
uctx->ctx_len + 1,
str_len + 1,
GFP_KERNEL);

if (!ctx)
return -ENOMEM;

ctx->ctx_doi = uctx->ctx_doi;
ctx->ctx_len = uctx->ctx_len;
ctx->ctx_len = str_len;
ctx->ctx_alg = uctx->ctx_alg;

memcpy(ctx->ctx_str,
uctx+1,
ctx->ctx_len);
ctx->ctx_str[ctx->ctx_len] = 0;
str_len);
ctx->ctx_str[str_len] = 0;
rc = security_context_to_sid(ctx->ctx_str,
ctx->ctx_len,
str_len,
&ctx->ctx_sid);

if (rc)
Expand Down

0 comments on commit 91c49d4

Please sign in to comment.