Skip to content

Commit

Permalink
[XFRM]: Fix sparse warning.
Browse files Browse the repository at this point in the history
security/selinux/xfrm.c:155:10: warning: Using plain integer as NULL pointer

Signed-off-by: Luiz Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Luiz Capitulino authored and David S. Miller committed Jan 7, 2006
1 parent aa0e4e4 commit ee2e684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/selinux/xfrm.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static int selinux_xfrm_sec_ctx_alloc(struct xfrm_sec_ctx **ctxp, struct xfrm_us
return rc;

out:
*ctxp = 0;
*ctxp = NULL;
kfree(ctx);
return rc;
}
Expand Down

0 comments on commit ee2e684

Please sign in to comment.