Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3114099pxb; Mon, 18 Oct 2021 08:29:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp14ihre/WvkFARnk3NZmoihv8SySYZFPzFotnPGnH7KzU/5dnSDZ/aXHASlso5sviyem5 X-Received: by 2002:a05:6402:4309:: with SMTP id m9mr45877356edc.272.1634570942742; Mon, 18 Oct 2021 08:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634570942; cv=none; d=google.com; s=arc-20160816; b=wE1htzXUOjp0eQ6xI25XWFOZkSBYpUuEdkHJmhS4Qqa1rfAy+bFLr4d33xO12Mub8Z BnaCIUp6ThMmse7EXZ7hWIsmK5kx+hSNvsuD/voCJTmvGex1jRfmXFeEHNXbXFeZ85hC eKF//2ziUVd0x0KYi5v6eEt9cPMFLSMf/b7/s/mOlUlzA0e23mHHRS2b48ohNpS2MRzw B9SkvPyX4zWeOkGuwQAPCAOxVP66DtHQgPge/iFGZnTGTpPUcA75Szp2pd7aRLhkYtN+ xYxdsmt3Vs12yTPpCOe8vD6Xnq25SBWi17xgJ/p51usmi+Ff+IpCsKHj+Usc15vVgMYM lChQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=KiW4b8WJbQDlnlJbpuQ/cHPw1gayXd4RJAUngsFWUZA=; b=KnW+wdVAeNISErUtmpWzXRotkjdnkLDhVEtfL239bhqIM56fziMJryW66H5fxYE+FC +W0f7yKkYRYLPii/JxTHoZWypqgz9FqlCz01Mf6sB7mYTEHddMzxnTqu8yqy5xvrvTZD JQdDpoG7mjc12hMfSNrhkslrrUL4P4UgmxrdBiuMHXSiYab1RNeymn+pQ9j47h99LBpr EGUOnBYwfMhEtiH+r3TfMmoK3sayKFqXhjJdZHdzb56pOfJ46GrKU+75B1JZsxafRj/0 dIrLuiGslAtb67iRz2oGQjLM+91RFQ96PX/ZjjE7yaBBR446kWRZQNobDkfg51MBROqO +fpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gX/KaQMt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp32si19738260ejc.351.2021.10.18.08.28.38; Mon, 18 Oct 2021 08:29:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gX/KaQMt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232110AbhJRP2p (ORCPT + 99 others); Mon, 18 Oct 2021 11:28:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:38316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbhJRP2n (ORCPT ); Mon, 18 Oct 2021 11:28:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9375660F0F; Mon, 18 Oct 2021 15:26:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634570791; bh=g01SmXPrKrf4gGXNhkcYhy6vdX7pSiVv/w2yiSK/OWc=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=gX/KaQMtRFzLR7TgVjiHpNtAa90oAzESOqAcI5/U8sY5PTy/K8OE6R7Uck+u4a73d TN+cfqwAw8lnIEZiyEYOkraK1s+NsEfC0MaHd+aj1e2vgsE/gl6bCcjFylVEgqVHEC YUIPDZD8/sNyz603CsvR25FGWAiXL4EC18M5W2sQ+53fAGIYebZz9J8K6Cxs4+5/gy mEn62N4E08gbTuhdAoRU0jZYBn/SCdxscEGd+BTYCaxeX8Gv5kHdfuwvE/5HDD7gFx 2Y7b1bRfrAe6d6VVL9TNE8AuZGZZmq8+PCaOH1sS86AxjIGq5+Vspu/ztMvROpbmt3 IfbocI4iQ1j+g== Date: Mon, 18 Oct 2021 17:26:18 +0200 (CEST) From: Jiri Kosina To: Ping Cheng cc: Benjamin Tissoires , Dmitry Torokhov , Jason Gerecke , Benjamin Tissoires , Linux Input , LKML , Aaron Skomra , "Dickens, Joshua" , caihuoqing@baidu.com Subject: Re: [PATCH] HID: wacom: Make use of the helper function devm_add_action_or_reset() In-Reply-To: Message-ID: References: <20210922125939.427-1-caihuoqing@baidu.com> <20211015025815.GA3874@LAPTOP-UKSR4ENP.internal.baidu.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 17 Oct 2021, Ping Cheng wrote: > I tested the set of two patches. I didn't see any issues with them > applied. But, while reviewing the patches, I noticed a minor logic > mismatch between the current patch and the original code. I'd hope at > least one of the maintainers (Jiri, Benjamin, or Dimitry) reviews this > patch, especially the part that I commented below, to make sure that > we don't trigger any race condition. I don't see any issue with that ordering, but I'd also prefer for clarity to keep updating the shared data structure under the mutex protection. With that, please send me the series with both patches and the Acks / Review-by accumulated, and I'll apply it. Thanks, -- Jiri Kosina SUSE Labs