Skip to contentSkip to conversation

xfrm: Sparse warning fix.

PATCH New Luiz Fernando Capitulino 1 participant 1 message Jan 6, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfrm: Sparse warning fix.

Fixes the following sparse warning:

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

 security/selinux/xfrm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/selinux/xfrm.c +1 -1
index c4d87d4..16eb183 100644
@@ -152,7 +152,7 @@ static int selinux_xfrm_sec_ctx_alloc(st
 	return rc;
 
 out:
-	*ctxp = 0;
+	*ctxp = NULL;
 	kfree(ctx);
 	return rc;
 }
Signature · 1 line
Luiz Fernando N. Capitulino