diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/integrity/iint.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/security/integrity/iint.c b/security/integrity/iint.c index 149faa81f6f0..5a6810041e5c 100644 --- a/security/integrity/iint.c +++ b/security/integrity/iint.c | |||
@@ -219,10 +219,13 @@ static int __init integrity_fs_init(void) | |||
219 | { | 219 | { |
220 | integrity_dir = securityfs_create_dir("integrity", NULL); | 220 | integrity_dir = securityfs_create_dir("integrity", NULL); |
221 | if (IS_ERR(integrity_dir)) { | 221 | if (IS_ERR(integrity_dir)) { |
222 | pr_err("Unable to create integrity sysfs dir: %ld\n", | 222 | int ret = PTR_ERR(integrity_dir); |
223 | PTR_ERR(integrity_dir)); | 223 | |
224 | if (ret != -ENODEV) | ||
225 | pr_err("Unable to create integrity sysfs dir: %d\n", | ||
226 | ret); | ||
224 | integrity_dir = NULL; | 227 | integrity_dir = NULL; |
225 | return PTR_ERR(integrity_dir); | 228 | return ret; |
226 | } | 229 | } |
227 | 230 | ||
228 | return 0; | 231 | return 0; |