aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-08-22 11:27:32 -0400
committerJeff Layton <jlayton@primarydata.com>2014-09-09 16:01:36 -0400
commite0b93eddfe17dcb7d644eb5d6ad02a86fc41a977 (patch)
tree97ceab83fdbfd3bf54fd8235a66da665fbcc83a7 /fs/notify
parent1c994a0909a556508c2cc26ab5d9e13c5ce33aa0 (diff)
security: make security_file_set_fowner, f_setown and __f_setown void return
security_file_set_fowner always returns 0, so make it f_setown and __f_setown void return functions and fix up the error handling in the callers. Cc: linux-security-module@vger.kernel.org Signed-off-by: Jeff Layton <jlayton@primarydata.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/notify')
-rw-r--r--fs/notify/dnotify/dnotify.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c
index abc8cbcfe90e..caaaf9dfe353 100644
--- a/fs/notify/dnotify/dnotify.c
+++ b/fs/notify/dnotify/dnotify.c
@@ -346,13 +346,7 @@ int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg)
346 goto out; 346 goto out;
347 } 347 }
348 348
349 error = __f_setown(filp, task_pid(current), PIDTYPE_PID, 0); 349 __f_setown(filp, task_pid(current), PIDTYPE_PID, 0);
350 if (error) {
351 /* if we added, we must shoot */
352 if (dn_mark == new_dn_mark)
353 destroy = 1;
354 goto out;
355 }
356 350
357 error = attach_dn(dn, dn_mark, id, fd, filp, mask); 351 error = attach_dn(dn, dn_mark, id, fd, filp, mask);
358 /* !error means that we attached the dn to the dn_mark, so don't free it */ 352 /* !error means that we attached the dn to the dn_mark, so don't free it */