Received: by 10.223.185.116 with SMTP id b49csp2270877wrg; Thu, 15 Feb 2018 09:04:12 -0800 (PST) X-Google-Smtp-Source: AH8x2264ZkxqVVjxwaSNchMOy4LMu3tXyd+l+OeXF0iOqXKPmE8yZA8/BmLa2v2zPuIhweJ2Adwi X-Received: by 10.98.251.5 with SMTP id x5mr3300282pfm.18.1518714252558; Thu, 15 Feb 2018 09:04:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518714252; cv=none; d=google.com; s=arc-20160816; b=K8WgXTjM3Lv+JPMHKJIlhI2nQdPNQfbv2dlKHwNkOxmh5obpMOPfTPJtNkQYUKrESv elLIe+e3U8EgQEzDNcPXH/QKocUF2Ikm3XBA3w52vPnYM6R4JgDYTlDKb9XcmLYV7Utm m6O7Is51i5HnTodi+43OChxuCZIfPtsmPWzs+WIS47uMCqUspozHEWd3TFmlYjelG9Xl ESVUM5bY6FpsX0DR4mJVLUobdxJExocaIEi/BdegMFTFgpNUxWVgj6F5YWkovmuCu2Ly x7gbpUeV7nGCoUgFwk/O+Ql6Ro9640clwxgYNVKFf2ddJZWzIwiqpVqBUr/oRjPbZ8J8 lr3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=IjvQnKvDeXYgHrOZRGEu8KQThhA42hdgHyW9yW5LtzI=; b=bRvNrbo/fhuqmZcwwUuiQ2Dys27o2s9chltQmGO85wXS8D+hjEQKBkEO/gCpIbnFCK y95op8TMWi56+0noQpCKm0MuEl2fppzHb3DUJt+YcUDgM22/eZS+HOMkvHt0uyddjdpn 5PUHxc/EFSZAgz2jvSut0Gq9Q2hjoEa9tws6LV1W6Aa300qaSZvw6llBaDcaRkRuCDC3 fy+hQVpGYHMu+uvKJj9UqEw42PseU2Sdezx70fotSvgB47DZZSUhOWyB/2NACqDgsSY8 oyAjuvs58vDkTB45lU65OjrMnq0r6qkLtE15RL/tX6BbDGfJklDFwRyg1uRKeqEJp+W+ AH5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p69si7415pfl.73.2018.02.15.09.03.54; Thu, 15 Feb 2018 09:04:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1426858AbeBORBz (ORCPT + 99 others); Thu, 15 Feb 2018 12:01:55 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:59668 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423465AbeBOPjH (ORCPT ); Thu, 15 Feb 2018 10:39:07 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A2F3810F0; Thu, 15 Feb 2018 15:39:06 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yang Shunyong , Adam Wallis , Vinod Koul Subject: [PATCH 4.15 006/202] dmaengine: dmatest: fix container_of member in dmatest_callback Date: Thu, 15 Feb 2018 16:15:06 +0100 Message-Id: <20180215151713.117545617@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151712.768794354@linuxfoundation.org> References: <20180215151712.768794354@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yang Shunyong commit 66b3bd2356e0a1531c71a3dcf96944621e25c17c upstream. 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 Acked-by: Adam Wallis Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/dmatest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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(done, struct dmatest_thread, test_done); if (!thread->done) { done->done = true; wake_up_all(done->wait);