From: Serge Hallyn Date: Mon, 15 Aug 2011 13:29:50 +0000 (-0500) Subject: capabilities: initialize has_cap X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7d8db1808a2001077a9f966180c5e4f7cc20d4c7;p=~shefty%2Frdma-dev.git capabilities: initialize has_cap Initialize has_cap in cap_bprm_set_creds() Reported-by: Andrew G. Morgan Signed-off-by: Serge Hallyn Signed-off-by: James Morris --- diff --git a/security/commoncap.c b/security/commoncap.c index 0f620c564fa..ee4f8486e5f 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -479,7 +479,7 @@ int cap_bprm_set_creds(struct linux_binprm *bprm) { const struct cred *old = current_cred(); struct cred *new = bprm->cred; - bool effective, has_cap; + bool effective, has_cap = false; int ret; effective = false;