projects/linux·commit ee2e6841

[XFRM]: Fix sparse warning.

ee2e6841 · Luiz Capitulino <[email protected]> · 2006-01-06 22:59:43 -08:00

security/selinux/xfrm.c:155:10: warning: Using plain integer as NULL pointer

Signed-off-by: Luiz Capitulino <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Commit
ee2e6841b934d76cb944a3390bbea84da777d4fa
Parents
aa0e4e4a

Changes

1 files changed · +1 −1

FileStatusAddDelContent
security/selinux/xfrm.cmodified+1−1View file

security/selinux/xfrm.c

View file
diff --git a/security/selinux/xfrm.c b/security/selinux/xfrm.c
index 5b77765..b2af7ca 100644
--- a/security/selinux/xfrm.c
+++ b/security/selinux/xfrm.c
@@ -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;
}