Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=98eb5683fb94c458b3c8d121797bc9aa1baf4e7e
Commit:     98eb5683fb94c458b3c8d121797bc9aa1baf4e7e
Parent:     cbebc51f7b77d26ec23145d6ef22ac2b209f7955
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Wed Dec 12 11:24:19 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Fri Dec 14 13:54:37 2007 -0800

    [TIPC]: Fix semaphore handling.
    
    As noted by Kevin, tipc's release() does down_interruptible() and
    ignores the return value.  So if signal_pending() we'll end up doing
    up() on a non-downed semaphore.  Fix.
    
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/tipc/socket.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 6b79226..24ddfd2 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -253,7 +253,7 @@ static int release(struct socket *sock)
        dbg("sock_delete: %x\n",tsock);
        if (!tsock)
                return 0;
-       down_interruptible(&tsock->sem);
+       down(&tsock->sem);
        if (!sock->sk) {
                up(&tsock->sem);
                return 0;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to