linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dmaengine: dmatest: fix container_of member in dmatest_callback
@ 2018-01-22  7:28 Yang Shunyong
  2018-01-23 14:32 ` Adam Wallis
  2018-01-29  4:45 ` Vinod Koul
  0 siblings, 2 replies; 8+ messages in thread
From: Yang Shunyong @ 2018-01-22  7:28 UTC (permalink / raw)
  To: vinod.koul
  Cc: dan.j.williams, awallis, yu.zheng, dmaengine, linux-kernel,
	Yang Shunyong

The type of arg passed to dmatest_callback is struct dmatest_done.
It refers to test_done in struct dmatest_thread, not done_wait.

Fixes: 6f6a23a213be ("dmaengine: dmatest: move callback wait ...")
Signed-off-by: Yang Shunyong <shunyong.yang@hxt-semitech.com>
---
 drivers/dma/dmatest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c
index ec5f9d2bc820..906e85d6dedc 100644
--- a/drivers/dma/dmatest.c
+++ b/drivers/dma/dmatest.c
@@ -355,7 +355,7 @@ static void dmatest_callback(void *arg)
 {
 	struct dmatest_done *done = arg;
 	struct dmatest_thread *thread =
-		container_of(arg, struct dmatest_thread, done_wait);
+		container_of(arg, struct dmatest_thread, test_done);
 	if (!thread->done) {
 		done->done = true;
 		wake_up_all(done->wait);
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-02-13  5:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-22  7:28 [PATCH] dmaengine: dmatest: fix container_of member in dmatest_callback Yang Shunyong
2018-01-23 14:32 ` Adam Wallis
2018-01-24  1:47   ` Yang, Shunyong
2018-01-24 18:34     ` Adam Wallis
2018-02-11  9:28   ` Wen He
2018-02-13  5:54     ` Yang, Shunyong
2018-01-29  4:45 ` Vinod Koul
2018-01-29  6:21   ` Yang, Shunyong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).