Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1552131pxb; Thu, 4 Nov 2021 04:31:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLqxtZWYB/fwKJ+wun+LvGqNYqYvguh2EPG6cOYpx29IrWT/Fxb8XND8DzxJ3too6fJA6v X-Received: by 2002:a05:6602:168e:: with SMTP id s14mr13058612iow.151.1636025509266; Thu, 04 Nov 2021 04:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636025509; cv=none; d=google.com; s=arc-20160816; b=qYjUSnYJ+AGdLkc/A8AL97XBTNkVQjP1E5gd/fWOAMCHtBXqG9kNARNiuxk/J0N36w T8nQpbjzIXTbW+Z5pUUD6g2rldExRWPFGOhTmmauPvNvjzIFMxNNvC/6Kn7OR86K63i2 JmlMWfnxFT3Z4Nyq1eULt/RYRxeUsYyBBUGQ70CV5xuXe2nMzr7kIVOKKC/zc586FjVX 4Ffi+zBlGGEoQYmUhvhHWxAXaXR2j/+JKnxxy5fa0CbTikS1KHItKvKBFSz10iW6Vduw smebPZ3h+PQJ5/qRgLRLv/Kf3bXZbWqUHo3zQfzBMuU4pTX0dEbvgBq+UEPATcmUVdax ESEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=NpUBP66UVdunnGSJXrV9MYZkv3lMfmqOm8B19Xoiuvk=; b=QVmEE3NyrAoOtWP4hBQzl/r5MKzQg086qtW07TDA4wZJcAGxy4BCkc4XawcA3KeCa/ sJCTFFKXjIno/M86C8yx9Iv666OcfdcSTQqrelvU/Eczl1EexWjaubd0FQ7V4CXfdkNV wLBXzylel8E4v0PabOBEiUDDI/yZ40jW/2sfMWQEWW7Vq/NAQjuq0tHxUuwNj37QuBWb Q0wV/5Fez6vo2rkl9QBuI+aGqcSrJIRCms2S9RNCUMHlsxfSXDRMccCuY2icMLBFmxfx e7M9uUmo63jhZBwmRH92tHuvTl8/Tl4MJ4kKG6K+or579xgzJggavJLsViul3MojSjdy a4ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=G+9T6zBx; 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si6475619jac.29.2021.11.04.04.31.36; Thu, 04 Nov 2021 04:31:49 -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=@canonical.com header.s=20210705 header.b=G+9T6zBx; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231230AbhKDLbl (ORCPT + 99 others); Thu, 4 Nov 2021 07:31:41 -0400 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:52418 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbhKDLbj (ORCPT ); Thu, 4 Nov 2021 07:31:39 -0400 Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id A882F3F33E for ; Thu, 4 Nov 2021 11:29:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1636025340; bh=NpUBP66UVdunnGSJXrV9MYZkv3lMfmqOm8B19Xoiuvk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=G+9T6zBxl0AiuYT6L3DzYPttzZixNcK73U8OOs77HQFuqR2IcDB3HIxdv8s165ixT SU90McAVKQZLHB4ouJxU3HgA3LKat91ZO2tG68iUaNXUVkabk9oQqqy+h6XXo5EQw/ iQDbK2rJXMVswEYtnvVeXVUAO+n+eJBfFtZkyk+7pBqAKPrQRWNBUPDI2WSzSjsEKE GDDEtwTiwLJ0fFXp2JG/acboPBny/mIh+HG98ind+d9PlmnvtEBshMr7moVPdn1aym OYazu66sA7iZZqpbSGSnLSqgpSTNKKXFPIYpOftJFFvLi4jTZUuQ9skgqAZw5EBuom UuyFTSqjauaNQ== Received: by mail-lf1-f70.google.com with SMTP id c40-20020a05651223a800b004018e2f2512so1301520lfv.11 for ; Thu, 04 Nov 2021 04:29:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=NpUBP66UVdunnGSJXrV9MYZkv3lMfmqOm8B19Xoiuvk=; b=NSSfEJbbRUN2isBYag743EWm5DGWZPqUxNt50BVQo1yOz6bnQHeEeWjHd9BYOZw++v ugTlJmVz/xWVupVKj4Jknbfc5FNulmDmepywvC+tFElWN2+hYiuPcLqZqTxSgtFCo4MH DVeZLYQ4khwKtYDNP2n1UkrEToLi6iH0xVPvFjAIlZayT/7q8bTcT1J41D5Ep3RFGxvF HUgOjntnU5H0gQuH0nrJ08ki6eAHooFeHQibBAFsdQqPFxIO3wFSTQykVYmt7tpaTMB0 AGktdiYm2bvM1lTt5SXeEbaJQymCPQSoGiuGNgyekXfJyjrlYZa8CvRiavishHqSbEy1 RO6Q== X-Gm-Message-State: AOAM531Sl8GmoPb+xWN468W+fTwATAhH1UACrKj4LmpjIfrmwWFrQOTd rqbvNPTGxNmGjdro6qGQqFzOYAZoE15D45MWYLDUtXb/Fr2Gcg11BcMsN29a8b4PcxRifzItGJT lFvhVMg+u81N1MikyZa8dFgx3He9cMxRle5vajhbiKQ== X-Received: by 2002:a2e:7301:: with SMTP id o1mr6662020ljc.235.1636025340116; Thu, 04 Nov 2021 04:29:00 -0700 (PDT) X-Received: by 2002:a2e:7301:: with SMTP id o1mr6662003ljc.235.1636025339871; Thu, 04 Nov 2021 04:28:59 -0700 (PDT) Received: from [192.168.3.67] (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id u4sm47193lff.38.2021.11.04.04.28.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Nov 2021 04:28:59 -0700 (PDT) Message-ID: <339a6580-4c03-8aeb-e790-8645b6501831@canonical.com> Date: Thu, 4 Nov 2021 12:28:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH] NFC: nfcmrvl: add unanchor after anchor Content-Language: en-US To: Jiasheng Jiang , yashsri421@gmail.com, davem@davemloft.net, rdunlap@infradead.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1636016141-3645490-1-git-send-email-jiasheng@iscas.ac.cn> From: Krzysztof Kozlowski In-Reply-To: <1636016141-3645490-1-git-send-email-jiasheng@iscas.ac.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/11/2021 09:55, Jiasheng Jiang wrote: > In the error path, the anchored urb is unanchored. > But in the successful path, the anchored urb is not. > Therefore, it might be better to add unanchor(). > > Fixes: f26e30c ("NFC: nfcmrvl: Initial commit for Marvell NFC driver") > Signed-off-by: Jiasheng Jiang > --- > drivers/nfc/nfcmrvl/usb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/nfc/nfcmrvl/usb.c b/drivers/nfc/nfcmrvl/usb.c > index bcd563c..f8ae517 100644 > --- a/drivers/nfc/nfcmrvl/usb.c > +++ b/drivers/nfc/nfcmrvl/usb.c > @@ -146,9 +146,9 @@ nfcmrvl_submit_bulk_urb(struct nfcmrvl_usb_drv_data *drv_data, gfp_t mem_flags) > if (err != -EPERM && err != -ENODEV) > nfc_err(&drv_data->udev->dev, > "urb %p submission failed (%d)\n", urb, -err); > - usb_unanchor_urb(urb); > } > > + usb_unanchor_urb(urb); > usb_free_urb(urb); > > return err; > Why only this place in the driver? And why only this driver - some others miss it as well (e.g. btusb which was probably the template for this one). Are you sure it is a correct patch? Did you test it? Best regards, Krzysztof