Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3973249ybc; Thu, 14 Nov 2019 18:33:48 -0800 (PST) X-Google-Smtp-Source: APXvYqw5Aw1mtRM+tBv5kGJYGgY7wj7u0Pt1oLb83wcn6zBEGnDIZPkbZpL21+BtGgnrle+KtwtG X-Received: by 2002:a17:906:4dda:: with SMTP id f26mr10184395ejw.89.1573785228303; Thu, 14 Nov 2019 18:33:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573785228; cv=none; d=google.com; s=arc-20160816; b=lylWtaYaXiZ1EeGmLDZXKKafmHayAaLwYWrjsMKuKlYJ57HIp0hF2ni2f+tOcv5V5g Xe1H1bfUd02QfdFRdaN8y+z82py/RISy69A/w86R5P46F8a3dgbUr81WQFJUbjLdPGdy MidnJMdnLP3Oecr8PVFQRfynqdEYhAg6/uIsNzrZuo1S5Ew0hmB5iDMnpVAAlpoeUqsz 1mqLJKX+HbtUjcBg3IhuN8PTK1gCDJq0xsRra/VGF/uATDc9DzcQWgrlhFsFuc/rOIGG Wyb+tRXrKrGivWNq2WXHP5YAFQh96dpAiljpF5UFWgDU1GSOnM33Xf5EGn4qgLKxtb8R S1zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=h6woE9Nax3taBQLO1Xq0hMJ7t3v77ZgaLEpNXtLBqYw=; b=Eb4cswqna1VVPgewPCJGIg3F9l3Vla8kPryl4ss9Z9VljQ1cCtyX9PpArigvnBTiSF ZUyhlZd2+vlkkDR+KzdBkYKuZ/ufbLE6CSABod1toEwlweTQ2K/Eeyshng2DmDIIve4a PZo0t+IJFVqv+OecT5TVqne0neq7kqfYaAL1ypIdCUupkp/XKwt8jfYt5I+mDhaIJz+P YKbTOfFNCLwSA1qheOBiak/QVmeRgBDmRmLOAp/bcZOrrkWDUgwTKZnP85prNittyjbI GZ40BY4jYQ7WJfd6g5gk7pUtpPym63ieryrX08rseNC6F7Z9InEa3aq00U47C3qnLmsJ UA8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=cofN0QFd; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si4869391edy.0.2019.11.14.18.33.23; Thu, 14 Nov 2019 18:33:48 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=cofN0QFd; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727319AbfKOCbw (ORCPT + 99 others); Thu, 14 Nov 2019 21:31:52 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:42405 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726674AbfKOCbw (ORCPT ); Thu, 14 Nov 2019 21:31:52 -0500 Received: by mail-pl1-f193.google.com with SMTP id j12so3599615plt.9; Thu, 14 Nov 2019 18:31:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=h6woE9Nax3taBQLO1Xq0hMJ7t3v77ZgaLEpNXtLBqYw=; b=cofN0QFdBQBBZWBqAPL412SkfosAs2T/j5MlC1NZhQzLYZAtGY9qZbMfv8MLf82obh LRJwCuHNn257xPQ5RQB9uUsATL4ZTdt8IrDYhMR+L/I/ITBarNbQ8zVSbX5/W5vslT9A i0xNn13K4Fbxtw3E56WGx8PpABojvQKBxziNhraKhL3P9HOMOPa1v6kaxmkDBm+ffsUv MFapumUuBTESODXze8NVdNohz1ejFxjNwAcCPl4YRwkOkfQEE5sxt452JRpVCkKTNPgD R67M+cUvo0GQU+IeXVRMsYQtKjwaCsXWtPACBRYRfnMde6kJ2WVmTMwxtuT6A4QUPpAC 83Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=h6woE9Nax3taBQLO1Xq0hMJ7t3v77ZgaLEpNXtLBqYw=; b=XYHql//KS2ixqzKK9htN0maaw4PhWVlF+r+vA63vL3yKawkcs5EUfZl2djI7XA0xkY 2gNp3t3nmRmpPZ2qjYdC/OPptOXZ3Aj66b8CLaNUMo5VmoZ62brosWlxO2GVLDt02APE Hkdrepk2em7gq+ujHzhLY66IqBg59MC6CFl5pmzIeDzSRIqv3xq3QXgYQncuYJbtjh3o H4TH/V5fKLDr1fDa+q23Ubrz3U5DQe7ewId5mFjDkkEj+psWtFZ90LJHUvU50vClfi+N Ei7hx32HDaYuP4auFzxmi9ifzm8yn6e6gW6bUkOrqCxeV/Q+sX/i2H00eLWJlHmmM8Fa 6Bjw== X-Gm-Message-State: APjAAAXH8V4MZRTc4spxXwUGo/s11zGvOdBnuTBkU9/BW7m7nS6tZ6Mb zaWbGO5HiRJ9qs/tC0+Snslme3B9m2w= X-Received: by 2002:a17:902:b614:: with SMTP id b20mr12718401pls.305.1573785111544; Thu, 14 Nov 2019 18:31:51 -0800 (PST) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id u20sm9464351pgo.50.2019.11.14.18.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 18:31:50 -0800 (PST) From: Chuhong Yuan Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH] media: pxa_camera: add missed tasklet_kill Date: Fri, 15 Nov 2019 10:31:43 +0800 Message-Id: <20191115023143.7128-1-hslester96@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver forgets to kill tasklet when probe fails and remove. Add the calls to fix it. Signed-off-by: Chuhong Yuan --- drivers/media/platform/pxa_camera.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/pxa_camera.c b/drivers/media/platform/pxa_camera.c index 8d47ea0c33f8..43ae645d866b 100644 --- a/drivers/media/platform/pxa_camera.c +++ b/drivers/media/platform/pxa_camera.c @@ -2530,6 +2530,7 @@ static int pxa_camera_probe(struct platform_device *pdev) v4l2_device_unregister(&pcdev->v4l2_dev); exit_deactivate: pxa_camera_deactivate(pcdev); + tasklet_kill(&pcdev->task_eof); exit_free_dma: dma_release_channel(pcdev->dma_chans[2]); exit_free_dma_u: @@ -2544,6 +2545,7 @@ static int pxa_camera_remove(struct platform_device *pdev) struct pxa_camera_dev *pcdev = dev_get_drvdata(&pdev->dev); pxa_camera_deactivate(pcdev); + tasklet_kill(&pcdev->task_eof); dma_release_channel(pcdev->dma_chans[0]); dma_release_channel(pcdev->dma_chans[1]); dma_release_channel(pcdev->dma_chans[2]); -- 2.24.0