[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1419356693-22625-1-git-send-email-der.herr@hofr.at>
Date: Tue, 23 Dec 2014 18:44:53 +0100
From: Nicholas Mc Guire <der.herr@...r.at>
To: "Ed L. Cashin" <ecashin@...aid.com>
Cc: linux-kernel@...r.kernel.org, Nicholas Mc Guire <der.herr@...r.at>
Subject: [PATCH] incorrect use of init_completion fixup
The second init_completion call should be a reinit_completion here.
patch is against 3.18.0 linux-next
Signed-off-by: Nicholas Mc Guire <der.herr@...r.at>
---
drivers/block/aoe/aoecmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index 422b7d8..2239513 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -1331,7 +1331,7 @@ aoe_ktstart(struct ktstate *k)
return -ENOMEM;
k->task = task;
wait_for_completion(&k->rendez); /* allow kthread to start */
- init_completion(&k->rendez); /* for waiting for exit later */
+ reinit_completion(&k->rendez); /* for waiting for exit later */
return 0;
}
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists