Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp80716lqo; Wed, 15 May 2024 22:45:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVZ1A1T9OdqW0tQaxiqjMGlDvp0t+BdMDn4SvyXwzIyONRC3Hro5dmUawjZUTZseoLWij/13QbOTBPOS1buMsApTpmqcK5vjxKWmFv2A== X-Google-Smtp-Source: AGHT+IGYPmBlgPx7Lq/46slVKdZxHOAhivxaDBg3M+AKmEy7iLunCvjjcjWWm16ziYBymeTTuJg4 X-Received: by 2002:aca:1010:0:b0:3c6:ce0:6820 with SMTP id 5614622812f47-3c997082b54mr19466208b6e.35.1715838325913; Wed, 15 May 2024 22:45:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715838325; cv=pass; d=google.com; s=arc-20160816; b=DYLybPAPjJPAXCdPDP31waABu+psJH12rZpz4oS0SeS25THBzaCo+QrHL11HiGYCJR iD3bXCwsMABJ6SzgXiA7QzRT+X6gxOw1Ln3TMsZGPNrAbdtU4cxEPIi+MXBRi/0Dm/fT iqR6vtxYUWPlvyPktVA6Hmvc85WqRwu5fBn+S635Z0a2A+xfbQss98UYROnkuG+/Fv5y f3WNeDwrmexWf/pKOZw0dcaYbjqklCRnibo24Lv3zQKLq99G8+So+HxpH4Jm8zJlWI7J azeCWKH8wa/NfZD1kRaJQlLc4GO6FkVEEZWl+FrWwEOikx2iCTeGh5xPsrVVBDJDqNrJ gbPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=/DYr7YtaOJpl7mkZXzEe/EBhzE9OpGM47plJ24emEac=; fh=NSVhKwDpvA7KTCKVynsSVC9KdyxWjUueJ57jLwd+zbQ=; b=fNKtwIKLAAV4BZIutrRw+IlCytBAQfaGkGlaSxLif0Lj5LNYu68X7te0GhyQ1TIxxT NQ870bAPKngaBD/WhG036usMbOENBDWrb3xttJ63jTP9c4IEBhFzvSX+Bui8vytauSmY 2zOB92l/X0IvuMVzgcAlh/bzfPpQwu0WpX/Bk7YC4eip+1U7aQNErxO0ALxNBOkOc4yI 0EG+gc4MqxUxYXeH5i/Gf3XmxQvReKgaSeTrvLCgvC/0+J3GBjhudFYiXggiDM1nWqsi f/fxPCM5oo+Mp3jijTgu8acNexZny8prc4BP/Fv6cD7z+siNI/a7Mbxb59vIzF+LoD9M BE3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-bluetooth+bounces-4682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4682-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-79300e3ee60si165839885a.551.2024.05.15.22.45.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 22:45:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-bluetooth+bounces-4682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4682-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9BD9C1C225A6 for ; Thu, 16 May 2024 05:45:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B13E1D54B; Thu, 16 May 2024 05:45:18 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1DCA11CA0; Thu, 16 May 2024 05:45:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715838317; cv=none; b=G6gX3kp9VCo0jVRhCnuGD1g4UuaBqRhkfm1OGxZmqTECOqRFAW1NzTFCMpLFfuwYhBqQv9LUJQ3BP2aWEHuwQT0oG8awxbj2yzpuz0LI2tASlm0isyeSFxxcXPJpyHCiBLrfposcdkB0sa+chvJ5jhCmMOomDCLNwpfnQgC0MSU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715838317; c=relaxed/simple; bh=kNqTM4bX8IampPJrP/pQJTOVJFaoMRwaXGjYsBwVtiI=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=blYisxr30EWbwy6xR8TYmnAMfCVO0aoO9CCUqf8a5e0DJSC3o6HLYjHXLpy/Ld7dJH9hnLMtBgqDDVMveISCXmU4OKZSFbklII38psVbqylCNZeF+lISnTOZ0iHcgqtJIcFGQ/HwWXML93f8dQwbbqih5ZilDYlkSkJa3OpZCic= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [192.168.0.224] (ip5f5aefc6.dynamic.kabel-deutschland.de [95.90.239.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id D4D4161E5FE01; Thu, 16 May 2024 07:44:46 +0200 (CEST) Message-ID: <5aa68ee5-dd84-4ac2-9fd1-36160358fdcf@molgen.mpg.de> Date: Thu, 16 May 2024 07:44:44 +0200 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] bluetooth: btintel_pcie: nonsense error recording in irq To: Oliver Neukum , marcel@holtmann.org, luiz.dentz@gmail.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Kiran K References: <20240516045118.18552-1-oneukum@suse.com> Content-Language: en-US From: Paul Menzel In-Reply-To: <20240516045118.18552-1-oneukum@suse.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit [Cc: +Kiran] Dear Oliver, Thank you for the patch. I have two minor comments. Could you please word the summary as a statement by adding a verb (in imperative mood). Maybe: > Fix nonsense … or > Remove unused `ret` assignment Am 16.05.24 um 06:50 schrieb Oliver Neukum: > Either you return an error or you ignore it. > Recording it but then overwriting it makes no sense. It’d be great if you added a Fixes: tag. > Signed-off-by: Oliver Neukum > --- > drivers/bluetooth/btintel_pcie.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c > index 590c188a4bb3..c507422d6b1b 100644 > --- a/drivers/bluetooth/btintel_pcie.c > +++ b/drivers/bluetooth/btintel_pcie.c > @@ -498,19 +498,15 @@ static int btintel_pcie_submit_rx_work(struct btintel_pcie_data *data, u8 status > rfh_hdr = buf; > > len = rfh_hdr->packet_len; > - if (len <= 0) { > - ret = -EINVAL; > + if (len <= 0) > goto resubmit; > - } > > /* Remove RFH header */ > buf += sizeof(*rfh_hdr); > > skb = alloc_skb(len, GFP_ATOMIC); > - if (!skb) { > - ret = -ENOMEM; > + if (!skb) > goto resubmit; > - } > > skb_put_data(skb, buf, len); > skb_queue_tail(&data->rx_skb_q, skb); Kind regards, Paul