Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2503883imm; Mon, 24 Sep 2018 05:34:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYmip/hhenwRIKW0TlntaR7OtW23QCupxQT9aUrpfnqmsdGn5nBv/M1LvBoa39dMzgFlhm7 X-Received: by 2002:a62:9b46:: with SMTP id r67-v6mr10144326pfd.105.1537792497274; Mon, 24 Sep 2018 05:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537792497; cv=none; d=google.com; s=arc-20160816; b=hTgGjfM8GaZoF9fOwyve+X9ed4N/oHxA6q2o+Y1EdmemH6xyrpRsl65BO2/MduAeqZ j97cIEQeYDHq1rERcNh4+GvV5PdTkzOlKn5fSPdustMG2MyN7BIs28J7KlSObvflLVHW fzmhG6Ei7wPmWbUSGJq7bIPZJbX17Bm+nK1mtoc/VQFdmikGO1ausZkdZzXAjPdQVDFv afCZ/F+6HAg8iHUwUhEOSqMGWaYzGgBINvhlYuSdM4XBzfVwzuZU/FDESv/YOiR3sW+R OTyaV5Tn9VnDpHYZmJ6UTfWTnT+sZ+oSlsnUwtErzT95QY6wFnpvhB4NG7zoEsjJZ7BE 6Hdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=asQKpJI/42w+V95zpZXpKeACDspBrk/STWos6dNNkYA=; b=E14taFau1mXCprHNTQOq+mgXZnkw0kGFDeRpvUNdFhGbVoq0jue2uIvmr50B0s31e7 ilUzaBE6CexSix7omFJpPF6eNByMxU5aHmJoIWTH+hXSmuAVp/HXsEP5DnIR89J//OoU KMglKXGGpnSYlyVz/j6WKVWmJeY2K4vaizCQYkkP4lfVg6xWYXsD219PaPNOWutF6mBw rmbF7JQolyEvSlVtBOH5WPps+wffVpJl9K9q5foQJDz67NIK/8Uvy0oL48+FlgBXh5+a O3Mc1RIrsQanfVZOROOPZfg4ef8vubsgD7DfCjL7970KFPI967kI9CEC9YnbzAOQV0eU W+4A== 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 y13-v6si34556043pgl.555.2018.09.24.05.34.42; Mon, 24 Sep 2018 05:34:57 -0700 (PDT) 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 S2388166AbeIXSeT (ORCPT + 99 others); Mon, 24 Sep 2018 14:34:19 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58136 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387409AbeIXSeS (ORCPT ); Mon, 24 Sep 2018 14:34:18 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 81DC01018; Mon, 24 Sep 2018 12:32:23 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hanna Hawa , Thomas Petazzoni , Vinod Koul , Sasha Levin Subject: [PATCH 4.18 092/235] dmaengine: mv_xor_v2: kill the tasklets upon exit Date: Mon, 24 Sep 2018 13:51:18 +0200 Message-Id: <20180924113114.349238780@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hanna Hawa [ Upstream commit 8bbafed8dd5cfa81071b50ead5cb60367fdef3a9 ] The mv_xor_v2 driver uses a tasklet, initialized during the probe() routine. However, it forgets to cleanup the tasklet using tasklet_kill() function during the remove() routine, which this patch fixes. This prevents the tasklet from potentially running after the module has been removed. Fixes: 19a340b1a820 ("dmaengine: mv_xor_v2: new driver") Signed-off-by: Hanna Hawa Reviewed-by: Thomas Petazzoni Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/dma/mv_xor_v2.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/dma/mv_xor_v2.c +++ b/drivers/dma/mv_xor_v2.c @@ -899,6 +899,8 @@ static int mv_xor_v2_remove(struct platf platform_msi_domain_free_irqs(&pdev->dev); + tasklet_kill(&xor_dev->irq_tasklet); + clk_disable_unprepare(xor_dev->clk); return 0;