aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/integrity/ima/ima_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c
index 5b0548d75561..be8294915cf7 100644
--- a/security/integrity/ima/ima_main.c
+++ b/security/integrity/ima/ima_main.c
@@ -258,7 +258,8 @@ static int __init init_ima(void)
258 int error; 258 int error;
259 259
260 error = ima_init(); 260 error = ima_init();
261 ima_initialized = 1; 261 if (!error)
262 ima_initialized = 1;
262 return error; 263 return error;
263} 264}
264 265