From: Jack Morgenstein Date: Wed, 18 Jun 2008 22:36:38 +0000 (-0700) Subject: IB/uverbs: Fix check of is_closed flag check in ib_uverbs_async_handler() X-Git-Tag: v2.6.26-rc7~15^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fb77bcef9f7be78e3e11543cb5abbcb1b1fac53e;p=linux-2.6-omap-h63xx.git IB/uverbs: Fix check of is_closed flag check in ib_uverbs_async_handler() Commit 1ae5c187 ("IB/uverbs: Don't store struct file * for event files") changed the way that closed files are handled in the uverbs code. However, after the conversion, is_closed flag is checked incorrectly in ib_uverbs_async_handler(). As a result, no async events are ever passed to applications. Found by: Ronni Zimmerman Signed-off-by: Jack Morgenstein Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c index f806da184b5..caed42bf7ef 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; }