projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edbb35c
)
audit_alloc_mark(): don't open-code ERR_CAST()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 30 Jan 2021 02:36:33 +0000
(21:36 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 23 Feb 2021 15:25:27 +0000
(10:25 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/audit_fsnotify.c
patch
|
blob
|
history
diff --git
a/kernel/audit_fsnotify.c
b/kernel/audit_fsnotify.c
index 5b3f01da172bce578d00acbbfcb35fca5a26c9dc..60739d5e3373f8da84e9732b93822a5b8007f8de 100644
(file)
--- a/
kernel/audit_fsnotify.c
+++ b/
kernel/audit_fsnotify.c
@@
-84,7
+84,7
@@
struct audit_fsnotify_mark *audit_alloc_mark(struct audit_krule *krule, char *pa
dentry = kern_path_locked(pathname, &path);
if (IS_ERR(dentry))
- return
(void *)dentry
; /* returning an error */
+ return
ERR_CAST(dentry)
; /* returning an error */
inode = path.dentry->d_inode;
inode_unlock(inode);