lkml.org 
[lkml]   [2018]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectsecurity/integrity/iint.c:225:9-16: ERROR: PTR_ERR applied after initialization to constant on line 224
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

\
 
 \ /
  Last update: 2018-06-20 22:57    [W:0.035 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site