From: Luiz Fernando Capitulino <lcapitulino@mandriva.com.br>
To: akpm <akpm@osdl.org>
Cc: "<sergeh"@us.ibm.com, jaegert@us.ibm.com,
lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] xfrm: Sparse warning fix.
Date: Fri, 6 Jan 2006 12:07:12 -0200 [thread overview]
Message-ID: <20060106120712.019fdefe.lcapitulino@mandriva.com.br> (raw)
Fixes the following sparse warning:
security/selinux/xfrm.c:155:10: warning: Using plain integer as NULL pointer
Signed-off-by: Luiz Capitulino <lcapitulino@mandriva.com.br>
security/selinux/xfrm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security/selinux/xfrm.c b/security/selinux/xfrm.c
index c4d87d4..16eb183 100644
--- a/security/selinux/xfrm.c
+++ b/security/selinux/xfrm.c
@@ -152,7 +152,7 @@ static int selinux_xfrm_sec_ctx_alloc(st
return rc;
out:
- *ctxp = 0;
+ *ctxp = NULL;
kfree(ctx);
return rc;
}
--
Luiz Fernando N. Capitulino
reply other threads:[~2006-01-06 15:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060106120712.019fdefe.lcapitulino@mandriva.com.br \
--to=lcapitulino@mandriva.com.br \
--cc="<sergeh"@us.ibm.com \
--cc=akpm@osdl.org \
--cc=jaegert@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®