tree:   https://github.com/martinbrandenburg/linux pagecache
head:   f07b5fd865f4a861fb08e2b6b83d644a3f9448ce
commit: f07b5fd865f4a861fb08e2b6b83d644a3f9448ce [22/22] orangefs: remove 
orangefs_new_inode

smatch warnings:
fs/orangefs/namei.c:20 orangefs_new_inode() error: 'inode' dereferencing 
possible ERR_PTR()

# 
https://github.com/martinbrandenburg/linux/commit/f07b5fd865f4a861fb08e2b6b83d644a3f9448ce
git remote add martinbrandenburg https://github.com/martinbrandenburg/linux
git remote update martinbrandenburg
git checkout f07b5fd865f4a861fb08e2b6b83d644a3f9448ce
vim +/inode +20 fs/orangefs/namei.c

274dcf55 Mike Marshall      2015-07-17  14  
f07b5fd8 Martin Brandenburg 2018-01-12  15  static struct inode 
*orangefs_new_inode(struct super_block *sb,
f07b5fd8 Martin Brandenburg 2018-01-12  16      struct inode *dir, struct 
orangefs_object_kref *ref)
f07b5fd8 Martin Brandenburg 2018-01-12  17  {
f07b5fd8 Martin Brandenburg 2018-01-12  18      struct inode *inode;
f07b5fd8 Martin Brandenburg 2018-01-12  19      inode = orangefs_iget(sb, ref);
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
We need an IS_ERR(inode) check.

f07b5fd8 Martin Brandenburg 2018-01-12 @20      orangefs_init_acl(inode, dir);
f07b5fd8 Martin Brandenburg 2018-01-12  21      return inode;
f07b5fd8 Martin Brandenburg 2018-01-12  22  }
f07b5fd8 Martin Brandenburg 2018-01-12  23  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
_______________________________________________
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild

Reply via email to