]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/socket.c
gso: Fix support for linear packets
[linux-2.6-omap-h63xx.git] / net / socket.c
index 47a3dc074eb0d643f432fb2d58007ea8bf4b9b49..af0205ff56f2ad3e8ed7f4edfff722291d763f34 100644 (file)
@@ -1074,6 +1074,13 @@ static int sock_fasync(int fd, struct file *filp, int on)
 
        lock_sock(sk);
 
+       spin_lock(&filp->f_lock);
+       if (on)
+               filp->f_flags |= FASYNC;
+       else
+               filp->f_flags &= ~FASYNC;
+       spin_unlock(&filp->f_lock);
+
        prev = &(sock->fasync_list);
 
        for (fa = *prev; fa != NULL; prev = &fa->fa_next, fa = *prev)