Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1423486pxb; Thu, 4 Nov 2021 01:57:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+mnxNVsGjfXxu5ap/kXpnXGJ3LjAFq24RY9yvVrdSwmVpXx1zAJpIkrAv3d8j6WqX7706 X-Received: by 2002:a6b:f102:: with SMTP id e2mr7011138iog.198.1636016242854; Thu, 04 Nov 2021 01:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636016242; cv=none; d=google.com; s=arc-20160816; b=vnE0BIT9tVi5iY3yUBAtq+7XYF2aKrHToGhWM3Hi0f43/FxIezBzGYNG/E+Yp8/I+N tVK/ZVWikoLhuOFF//oSnViZYzfuRC5cK1OICFuO1vtYkIdt5LaZioXRdfVX6hEG3LFF 8bjpOsLw0IaDhbsWrOQaEaFeQ/I1blZhx5/sIXqS03pPsQj9HvFJ2i4WTxv/tOOxOXJp /UzhIy2X7BXwMVaDqVa5JMSskdONmj5PGq1dflEtGWV7sU8FimikCx9Q+Lt3NYv+QCsY qRTEaAr0wq/RJVmVzrb2/16JD0UYAZfn4K7eTzEeWrCA+8JnoxazBb6LZK2FeAkz3F0v rJ7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=CIEL9oD5kWV9yCMaTSJOAZUMARZqLn/AvPOzLexf4pg=; b=e+tlehfU6z95XWI44SCeghWmcU6NbJjMYieWjFqn5V3jPM1fyWrJlGWbAF8NNsSiI3 PqKEKLDgbEQGoxywcTukkco0Zw+15WaiTaG6BZBM8/4y7CTzY3igcA7q6gIV6Sk8MVqS g/9ONwN4yb59BJNmvCsBSIdB5/mzokzdYNoUWuVMzSxByLjvEZSB+43AHeAHCRrvK4CD VW74IAsbGbvQur+xfqXfHgya3I6MCTd743C6VBLZK4XbAsMFQv15bQtubozFpTre9RT3 wuqQHQxczNUCjS9uuHmPpUnJlRaCkQz8Aybo9MyEnr6+NaPVkaQRZUoSYj6A9rxkhQ+U S+NQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si9780465ilg.94.2021.11.04.01.57.09; Thu, 04 Nov 2021 01:57:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230344AbhKDI6q (ORCPT + 99 others); Thu, 4 Nov 2021 04:58:46 -0400 Received: from smtp25.cstnet.cn ([159.226.251.25]:50618 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230229AbhKDI6n (ORCPT ); Thu, 4 Nov 2021 04:58:43 -0400 Received: from localhost.localdomain (unknown [124.16.138.128]) by APP-05 (Coremail) with SMTP id zQCowAA3+PQOoINhj9xCBg--.35075S2; Thu, 04 Nov 2021 16:55:42 +0800 (CST) From: Jiasheng Jiang To: krzysztof.kozlowski@canonical.com, yashsri421@gmail.com, davem@davemloft.net, rdunlap@infradead.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiasheng Jiang Subject: [PATCH] NFC: nfcmrvl: add unanchor after anchor Date: Thu, 4 Nov 2021 08:55:41 +0000 Message-Id: <1636016141-3645490-1-git-send-email-jiasheng@iscas.ac.cn> X-Mailer: git-send-email 2.7.4 X-CM-TRANSID: zQCowAA3+PQOoINhj9xCBg--.35075S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Jry8Jry3JFyfKr1DtF48Xrb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List: linux-kernel@vger.kernel.org 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; -- 2.7.4