diff options
Diffstat (limited to 'fs/fcntl.c')
-rw-r--r-- | fs/fcntl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fcntl.c b/fs/fcntl.c index 431bb6459273..d865ca66ccba 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c | |||
@@ -184,6 +184,8 @@ static int setfl(int fd, struct file * filp, unsigned long arg) | |||
184 | error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0); | 184 | error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0); |
185 | if (error < 0) | 185 | if (error < 0) |
186 | goto out; | 186 | goto out; |
187 | if (error > 0) | ||
188 | error = 0; | ||
187 | } | 189 | } |
188 | spin_lock(&filp->f_lock); | 190 | spin_lock(&filp->f_lock); |
189 | filp->f_flags = (arg & SETFL_MASK) | (filp->f_flags & ~SETFL_MASK); | 191 | filp->f_flags = (arg & SETFL_MASK) | (filp->f_flags & ~SETFL_MASK); |