Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp902839pxb; Wed, 27 Oct 2021 14:50:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3iGcSuqmkFjYQSZylH0MTcnivCzcT91GEP6j3S1cRia8FONKlQL0/v0OM7E2kNRYkmi+w X-Received: by 2002:a63:79cf:: with SMTP id u198mr241440pgc.259.1635371423697; Wed, 27 Oct 2021 14:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635371423; cv=none; d=google.com; s=arc-20160816; b=o1eCe1JOF+RIenQbGUJ6xjiI6Bcb1af8h1MIXucET78z/11TGEDliIBE6y74XO2+Td Jo7r8amGmoJC/lvK9/TaRApicuC1IXO2fS1ALzfvdutPBgEN9AEOjRuZ2Y0G8lKzo/1M vPF3tZqwSdKycXKQi9fwvX1/KbKbRKSO1akalDkkzzP8biBLAXE5M3EKPwVuJwUwMA5q C0KeKGsNlbzKUbXabJSypGXBQ18DX77DnE4SPZKJNQ347i53a/Zi9Hf4I+xtbRBNiduC EnQbJhrQo1o0iLR8p3EFKS7uojiIZu1Vrr0vxzj0OJLt/j8poNYPjyHmwIpilv/W5AwB sMBQ== 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=jwwPE0aVUYsbCKw1VgEmCQN7qYnq8IFy2pl2kDguC7s=; b=OtVmEgvUr/omYvmCYt5wg3TEjNHFBu1MjSte8338hSnmj3c73+DVomrjRl5KflDyuD Zol2J+eqdsBV0LRQBilMfbE/J7xGUTDYKrMvIfEpeooM84r5FtW3qX03OI7Bd9Zbt+5p T0+HbF/R8Ka74G9cGxTMVDAkgHodcgQfF/EMpzc0HxBiGv6EzGokoDextQb2YvqfRSMf G+CFwvoWl5L6MiE8+J2N1+r/0wv7yAtD3aWvVSGSLUQ0Ft4A60kNS99viHr0Xdtr2+nu 9BAGlaUOzqZD9G30hV8FMi5TgwOcFTphTXrZ2NmKvz46vOhzHxp9saQ1pFxYnH2uRUJt Vr+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EN7jmDW0; 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 j15si1683249pfu.139.2021.10.27.14.50.10; Wed, 27 Oct 2021 14:50:23 -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=EN7jmDW0; 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 S235621AbhJ0IRc (ORCPT + 99 others); Wed, 27 Oct 2021 04:17:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:47996 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231715AbhJ0IRb (ORCPT ); Wed, 27 Oct 2021 04:17:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 72CC260C40; Wed, 27 Oct 2021 08:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635322506; bh=X4JuOwCZnQSrdHtwxGd5ZSp8ZTiooFZT+7jB1hU+VQo=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=EN7jmDW0tomOx7Xog/AHcXkUIZ726ZD5ezc0KfilMWo4ZgwwDoIHgHzZ2PnZNlh7w 01wZlWOBlJ5afZxigypsRCKOXPf9UcKglDRDJlU00IV2nnqnRH9s6m7G8cX+r7o1Uy qvz4vKSd2hAvc3c/JY9had1gUE70tNFwLdMJ2mzR1sCtJLd8DGm/pJYFOQJJAS+SaK mlwHoyRryUv6lvTroTIwR9k1RL/+v3QTd5kSE2zqcSYeK0U+rIyYuMQRV63qN34fEw KY4/otaDgdtgabgsBzkiZKLSdGrC9lhUyn4ofimub1m7g9OQrIXYR7kkwxD0oaBYQk 3kZl9RuSoV1ew== Date: Wed, 27 Oct 2021 10:15:02 +0200 (CEST) From: Jiri Kosina To: Jason Gerecke cc: Dmitry Torokhov , Ping Cheng , Benjamin Tissoires , Benjamin Tissoires , Linux Input , LKML , Aaron Skomra , "Dickens, Joshua" , Cai Huoqing 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 Tue, 26 Oct 2021, Jason Gerecke wrote: > Following up on this. I took a second look at the shared struct, and > believe that things should work fine during initialization and > steady-state. There are, however, opportunities for e.g. one > device/thread to be removed and set e.g. `shared->touch = NULL` while a > second device/thread is attempting to send an event out of that device. > This is going to be very rare and only on disconnect, which is probably > why we've never received reports of real-world issues. > > This shared issue is present with or without the changes by Cai and > myself. I would ask that these two patches be merged Now applied. Thanks, -- Jiri Kosina SUSE Labs