]> Pileus Git - ~andy/linux/blobdiff - fs/fcntl.c
hwmon: Define a standard interface for chassis intrusion detection
[~andy/linux] / fs / fcntl.c
index 431bb645927363c714d375d067e0f09365ed8e66..d865ca66ccba1a6fb331150a75c7d50b5545e87c 100644 (file)
@@ -184,6 +184,8 @@ static int setfl(int fd, struct file * filp, unsigned long arg)
                error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0);
                if (error < 0)
                        goto out;
+               if (error > 0)
+                       error = 0;
        }
        spin_lock(&filp->f_lock);
        filp->f_flags = (arg & SETFL_MASK) | (filp->f_flags & ~SETFL_MASK);