audit_fsnotify.c (84a73014d86fd660822a20c032625e3afe99ca58) | audit_fsnotify.c (5955102c9984fa081b2d570cfac75c97eecf8f3b) |
---|---|
1/* audit_fsnotify.c -- tracking inodes 2 * 3 * Copyright 2003-2009,2014-2015 Red Hat, Inc. 4 * Copyright 2005 Hewlett-Packard Development Company, L.P. 5 * Copyright 2005 IBM Corporation 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 81 unchanged lines hidden (view full) --- 90 91 if (pathname[0] != '/' || pathname[len-1] == '/') 92 return ERR_PTR(-EINVAL); 93 94 dentry = kern_path_locked(pathname, &path); 95 if (IS_ERR(dentry)) 96 return (void *)dentry; /* returning an error */ 97 inode = path.dentry->d_inode; | 1/* audit_fsnotify.c -- tracking inodes 2 * 3 * Copyright 2003-2009,2014-2015 Red Hat, Inc. 4 * Copyright 2005 Hewlett-Packard Development Company, L.P. 5 * Copyright 2005 IBM Corporation 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 81 unchanged lines hidden (view full) --- 90 91 if (pathname[0] != '/' || pathname[len-1] == '/') 92 return ERR_PTR(-EINVAL); 93 94 dentry = kern_path_locked(pathname, &path); 95 if (IS_ERR(dentry)) 96 return (void *)dentry; /* returning an error */ 97 inode = path.dentry->d_inode; |
98 mutex_unlock(&inode->i_mutex); | 98 inode_unlock(inode); |
99 100 audit_mark = kzalloc(sizeof(*audit_mark), GFP_KERNEL); 101 if (unlikely(!audit_mark)) { 102 audit_mark = ERR_PTR(-ENOMEM); 103 goto out; 104 } 105 106 fsnotify_init_mark(&audit_mark->mark, audit_fsnotify_free_mark); --- 110 unchanged lines hidden --- | 99 100 audit_mark = kzalloc(sizeof(*audit_mark), GFP_KERNEL); 101 if (unlikely(!audit_mark)) { 102 audit_mark = ERR_PTR(-ENOMEM); 103 goto out; 104 } 105 106 fsnotify_init_mark(&audit_mark->mark, audit_fsnotify_free_mark); --- 110 unchanged lines hidden --- |