[ofa-general] [PATCH] ib_core: fix is_closed flag check in ib_uverbs_async_handler

Jack Morgenstein jackm at dev.mellanox.co.il
Tue Jun 17 04:11:02 PDT 2008


ib_core: fix async event handler "is_closed" check

The is_closed flag is checked incorrectly in ib_uverbs_async_handler().  As a result,
no async events were passed to applications.

Found by: Ronni Zimmerman <ronniz at mellanox.co.il>

Signed-off-by: Jack Morgenstein <jackm at dev.mellanox.co.il>

diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c
index f806da1..caed42b 100644
--- a/drivers/infiniband/core/uverbs_main.c
+++ b/drivers/infiniband/core/uverbs_main.c
@@ -423,7 +423,7 @@ static void ib_uverbs_async_handler(struct ib_uverbs_file *file,
 	unsigned long flags;
 
 	spin_lock_irqsave(&file->async_file->lock, flags);
-	if (!file->async_file->is_closed) {
+	if (file->async_file->is_closed) {
 		spin_unlock_irqrestore(&file->async_file->lock, flags);
 		return;
 	}



More information about the general mailing list