security/integrity/iint.c:225:9-16: ERROR: PTR_ERR applied after initialization to constant on line 224
From: kbuild test robot
Date: Wed Jun 20 2018 - 16:56:41 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 81e97f01371f4e1701feeafe484665112cd9ddc2
commit: 0c343af8065be5ceb0c03a876af7c513e960e2ff integrity: Add an integrity directory in securityfs
date: 5 weeks ago
coccinelle warnings: (new ones prefixed by >>)
>> security/integrity/iint.c:225:9-16: ERROR: PTR_ERR applied after initialization to constant on line 224
vim +225 security/integrity/iint.c
217
218 static int __init integrity_fs_init(void)
219 {
220 integrity_dir = securityfs_create_dir("integrity", NULL);
221 if (IS_ERR(integrity_dir)) {
222 pr_err("Unable to create integrity sysfs dir: %ld\n",
223 PTR_ERR(integrity_dir));
> 224 integrity_dir = NULL;
> 225 return PTR_ERR(integrity_dir);
226 }
227
228 return 0;
229 }
230
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation