Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -84,7 +84,7 @@ struct audit_fsnotify_mark *audit_alloc_mark(struct audit_krule *krule, char *pa · 83 unmodified lines | |||
| 84 | 84 | ||
| 85 | dentry = kern_path_locked(pathname, &path); | 85 | dentry = kern_path_locked(pathname, &path); |
| 86 | if (IS_ERR(dentry)) | 86 | if (IS_ERR(dentry)) |
| 87 | return (void *)dentry; /* returning an error */ | 87 | return ERR_CAST(dentry); /* returning an error */ |
| 88 | inode = path.dentry->d_inode; | 88 | inode = path.dentry->d_inode; |
| 89 | inode_unlock(inode); | 89 | inode_unlock(inode); |
| 90 | 90 | ||