Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp441542rdb; Tue, 5 Dec 2023 09:27:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyAi3DtJq6uavymh1ojeOevE0s3KtefCiOK1Tjmrw+PMAqXVLzmKDHbdmORqbiuhKRvoAK X-Received: by 2002:a05:6808:10c8:b0:3ae:4ca9:cae5 with SMTP id s8-20020a05680810c800b003ae4ca9cae5mr6901254ois.21.1701797261928; Tue, 05 Dec 2023 09:27:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701797261; cv=pass; d=google.com; s=arc-20160816; b=zB2BRcQkXQZ12iiKJvbrdk2s1ulZgZHoZoRB5p38Nme0k9rPY4prDyUGmt7GdTzQNh UiGhHDW//5ulE+z0KyOZp+UyS93TrFFpckODWT9l8cLcZ9j8nIBeQB5KiAUu07rmC4Pv mxk7Y0AK/vzTjWJ091TJV+tn7q6OA+6E7IBKNoac6ylPNJ2SGonDL+7m0O97t2Lr7P+t mCVSovBLKryHakW5ibmTO5vTB7UmVzl2y0KfiocWK4nkwU8I8kWhfekmVT7bJaXg4Y4x pCdvEmdamXZ47y1p/pJKfvvSii+YECgME6vUTrKYMdUGG/Y4AkMlobuWKJ6sF5FNAWNj cTXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:dkim-signature; bh=7fNJOsQyKCJVxDU+kYFvWKqAIRtDrz/rvo42UT74Mac=; fh=MWDP0/IABKBkNAWrXQs51gY7IfeuDrtGxzy1OCCOGoQ=; b=IYVoXTQFZ5swgf3/hAv9zKXUbeJy4iHWFS0qhbKF44zBVfB4UIMkJpCXL+BF5XPLcH U8L49PlD821S0ilDI+rfYinX+S5CRKM5ceIuXrbeE8By9OLWoEckcqX+d6iwjh9Z0tee E+RVfG3jWXCXUD5269E/8G5gQLssgW5G93NYKIAxROnqjlJb2+4FMI3AHfyFdIh3S9/G dAxj3Wpd+8hAbJ6HSEZAb2sd5uvsr/q6SfZiE2886VdIRcEJSa8P+p/UzkisTqCZDmjY jJupZ8hCspvaiORngRQ9+LChI2l/1du1q4ju3PTTY0tJC6vfbKEMBozFPrcPg51kxWqX IzZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=l9wajJRg; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siddh.me Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 141-20020a630293000000b005c660ba30afsi5596805pgc.475.2023.12.05.09.27.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 09:27:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=l9wajJRg; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siddh.me Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B526E806762B; Tue, 5 Dec 2023 09:25:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345246AbjLERZf (ORCPT + 99 others); Tue, 5 Dec 2023 12:25:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346056AbjLERZd (ORCPT ); Tue, 5 Dec 2023 12:25:33 -0500 Received: from sender-of-o51.zoho.in (sender-of-o51.zoho.in [103.117.158.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B62F01A4 for ; Tue, 5 Dec 2023 09:25:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701797109; cv=none; d=zohomail.in; s=zohoarc; b=OwXrFQnRWMbGKXs8+HL02CBt0q/f5RKkQDyviQYEdqHjeyAMXS8C6mOybvaoDDB3bLhCPiZUE2jsJEaOolZlgrQ8RXz0O5wlkqFwh6E462VqztysizNqm3mJVrqnLr03xwciAKEQL7W1nvfFcg0A0E7PRW5pMqOap28i5PzwMXI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1701797109; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=7fNJOsQyKCJVxDU+kYFvWKqAIRtDrz/rvo42UT74Mac=; b=IxBSawQdPPq8g1pvb2hMR1YuPckMEyMuFpGYZYh1FEaVafAxHPoZby/QALQjj+xjV//E/1JjFWIc8Wl0oxBglckib+1jEwAUSEj3AD5nhStECZGDu1efpa31vL7M6Ro3RNjHcB+PnAahp8kiUOrHmkBXahZPA0gVzOMR+4GgMLE= ARC-Authentication-Results: i=1; mx.zohomail.in; dkim=pass header.i=siddh.me; spf=pass smtp.mailfrom=sanganaka@siddh.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1701797109; s=zmail; d=siddh.me; i=sanganaka@siddh.me; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=7fNJOsQyKCJVxDU+kYFvWKqAIRtDrz/rvo42UT74Mac=; b=l9wajJRg1RGLagwq0LbP4ikyzJZF07oyPucg+1i24ZTormJdkw6/mw4LEqvzsAgL qZgf6VcXm1YZt7R8mqSM1HYcPzSWUsfmvnLR9vCH4lJG3E3cAZq1LqX+6S59KXgoKxa zAtUsm5rOCLhdQIyNG5rN4Bfu8ZHdKrcysexWeks= Received: from mail.zoho.in by mx.zoho.in with SMTP id 1701797077500517.4638203688928; Tue, 5 Dec 2023 22:54:37 +0530 (IST) Date: Tue, 05 Dec 2023 22:54:37 +0530 From: Siddh Raman Pant To: "Krzysztof Kozlowski" Cc: "David S. Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Suman Ghosh" , "netdev" , "linux-kernel" , "syzbot+bbe84a4010eeea00982d" Message-ID: <18c3b02a1ef.6fec9cb996724.8771055654191224615@siddh.me> In-Reply-To: <18c3aff94ef.7cc78f6896702.921153651485959341@siddh.me> References: <4143dc4398aa4940a76d3f375ec7984e98891a11.1701627492.git.code@siddh.me> <18c3aff94ef.7cc78f6896702.921153651485959341@siddh.me> Subject: Re: [PATCH net-next v3 1/2] nfc: llcp_core: Hold a ref to llcp_local->dev when holding a ref to llcp_local MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 09:25:49 -0800 (PST) On Tue, 05 Dec 2023 22:51:17 +0530, Siddh Raman Pant wrote: > I agree, it was something I thought about as well. There should be a > new function for refcount increment. Maybe the existing one could be > renamed to nfc_get_device_from_idx() and a new nfc_get_device() be > defined. Or nfc_find_device() instead of nfc_get_device_from_idx(). Thanks, Siddh