diff options
Diffstat (limited to 'fs/notify/dnotify/dnotify.c')
-rw-r--r-- | fs/notify/dnotify/dnotify.c | 8 |
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 */ |