Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2152665ybc; Wed, 20 Nov 2019 09:38:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxDKMuGOwBkfJUQavSD1f8POAGBVuHW1oGc6JiwvFnRCRMKoibG7s2jIacLMHCvPgBB8f4e X-Received: by 2002:a17:906:af62:: with SMTP id os2mr6934583ejb.105.1574271501662; Wed, 20 Nov 2019 09:38:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574271501; cv=none; d=google.com; s=arc-20160816; b=qsnOU2tjQ5OiraagNRRknRLOkz+CHXafoeSMzKVUJwhDyQeJl/emRYCkOFQruzbBdP S7NnLP5QTY3xp/yqNyT4ex3sP5va7Wkoznw21nl4zlDE7eJ8NhI5hEbbpcql8mSzb+Ct I42dmZbSZdgzseGi3RrB1kf9xwbfBtme4qU5t7NEzHQxBxxXlwVyl4j5+QkiokqrN3O8 hIWGzjy+aFGFy+KLdiXAxUocE0B8ls0ZLhbTsHvOVwA40rwy0x9aIFUkoQDp31kUO+y6 pIaHC4ax/AQ1gfuN6oKV47CnbZqe01Z1BeUCSGG8k6v8N502ZpVpzDEmD4gG7Vt8s3X4 FjIA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ozs07uWSH+YFoCO2hgMRzBk+ap3WbAVlyLFdbVfhH7A=; b=P09R++dwITjfgwlykb2riaQ0d7ot1n2BfWwyXKKFCSG4rk+wjw8IiLoUHcSTSyPXEY 2VHWuOY+TzSHbFy0lmz0fuJxBFu761kkBbg2+OOk4a2WjBTh7BsiLKumN8XlHF62ITfW dnK0ySX3lXIj9wccsvHYXoqgl+JISFEutDnXs4H/0qPQSHOr76nf2oJqm66Z6BleXYcb 123uKbDxF0eLqxCwVTj86JBIOClKwIijBnXqKO45BDOCFR0uvX9j7yxT65D/yUgTk/dw EZXOE3glqxqm6k2g7CdF7Oejt6ef8eG+3Q0P/gW8PADIX/igRqjGeFmxfJEnqclJiVig VPbw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si2062739ejs.376.2019.11.20.09.37.57; Wed, 20 Nov 2019 09:38:21 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729681AbfKTQXD (ORCPT + 99 others); Wed, 20 Nov 2019 11:23:03 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:48386 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727885AbfKTQXD (ORCPT ); Wed, 20 Nov 2019 11:23:03 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 6715128CFC2 Subject: Re: [PATCH] platform/chrome: cros_usbpd_logger: add missed destroy_workqueue in remove To: Chuhong Yuan Cc: Benson Leung , linux-kernel@vger.kernel.org References: <20191113063821.8896-1-hslester96@gmail.com> From: Enric Balletbo i Serra Message-ID: <0d4c340d-7b4f-6efe-7643-97f848fa1f04@collabora.com> Date: Wed, 20 Nov 2019 17:22:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191113063821.8896-1-hslester96@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/11/19 7:38, Chuhong Yuan wrote: > The driver forgets to destroy workqueue in remove. > Add the missed call to fix it. > > Signed-off-by: Chuhong Yuan Applied for 5.5 Thanks, Enric > --- > drivers/platform/chrome/cros_usbpd_logger.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/platform/chrome/cros_usbpd_logger.c b/drivers/platform/chrome/cros_usbpd_logger.c > index 2430e8b82810..374cdd1e868a 100644 > --- a/drivers/platform/chrome/cros_usbpd_logger.c > +++ b/drivers/platform/chrome/cros_usbpd_logger.c > @@ -224,6 +224,7 @@ static int cros_usbpd_logger_remove(struct platform_device *pd) > struct logger_data *logger = platform_get_drvdata(pd); > > cancel_delayed_work_sync(&logger->log_work); > + destroy_workqueue(logger->log_workqueue); > > return 0; > } >