Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp994605rbd; Fri, 23 Feb 2024 09:40:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWw/ekABpd6zM8IlMZE8pYN7i7lvuS3DiuK6YU5OxV/ZDVqbUvbWPrADpWqKOSNV0wsyxGnxgmNSdONc7JBGurfkKMUtzIfkT0qoRI92w== X-Google-Smtp-Source: AGHT+IHBLS7ExRxIxp0HOqULpJnVkseZb4+yRjrYcoehBQPvciU/u827/+f73RLBilwQaUwJU9G/ X-Received: by 2002:a81:df13:0:b0:608:ce53:3ad2 with SMTP id c19-20020a81df13000000b00608ce533ad2mr157110ywn.14.1708710032138; Fri, 23 Feb 2024 09:40:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708710032; cv=pass; d=google.com; s=arc-20160816; b=pXawui1/okXMJ3HjFFpL/aQ4gQbQX99iEXcQxyp1Iuc7lX+m1AozfAfb1O11PhBgJ2 Xw/18TFWksMwQBpwK3C0A75FpK4x3ZakubhvAkZnHub83QoIiyZW2RYsNgUl1AZPt0wR ef5QiijHROcNSMJnDtGHHAcHJWge/0k9wKOd61ytNU6N4dFnVc/cRSRwAVudpO/QLwM/ 1iYVfYZpoLXKrOihEq9sVSJu0LOdMhORbWAjyL/Eh0wXe1ElIemJ5XX7xv59B/s9siSW K3VL2qDn9CmkJnm3GtRHMweVWbM8QZ9lHqYi2Qvh0Q8hSY7Btjh6x/Lw2tNWXiTV6kdc 5JQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=3y4C+5bS7QyJOy/gmK5i4+I/ZRvWBjtUwEUpl15Fdro=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=pTQb8T5EWDVtFsxO/TGw/75lWWiFZPT0kGMIxdJ/jNAedzbjgvabCk3cGyqMf6iFyC U5r2dMYjf3TjrihHRtoNkQmcb1fJrq27MDjmfvcACaDM9tKgjOpJ/DW5Trv/R5nIwD04 SafPEhXvzoDknod4QQ8N6mSNRx6xnPbRqBJA4tDrUIPE/GEFg7W2R4VHW55qN+4xPlyQ h+riHKEKbrJIqw8SpClcrOaTDgyPyOb01ACl4yEF4wNKGxvV/moJ8k4xyHkVnmOyit2k ivo0DgSzhY5HWzGkGmAPpa72dDvLGQwSpVIjDYUEBoq6ATnVN42GkRgCKw0aYTh12ilK vi4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RPYK72Pk; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2126-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2126-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jt39-20020a05622aa02700b0042dd3f1e76csi13918158qtb.572.2024.02.23.09.40.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 09:40:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2126-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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RPYK72Pk; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2126-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2126-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 4672F1C25581 for ; Fri, 23 Feb 2024 17:40:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC7F6133296; Fri, 23 Feb 2024 17:38:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RPYK72Pk" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADD6013A264 for ; Fri, 23 Feb 2024 17:38:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708709905; cv=none; b=H+Yw+BzcgAqdN3VlLG8uQ0fWoelVy1KgEEau8qDg3bvhU56cMFDlOCOxCp2yAtfxxiP2/TsJFwNv74Rw1jqjSIQqWwai2dz+BBiMUZeUGHBWDdLjygHeJzj/gsBxYl3+a//4/ioDuuPnvcwdIgkt/g7ufhCtiXc0aJO9G3Oq1Rg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708709905; c=relaxed/simple; bh=kyUH7Mqf080WPWqFOMDN5l9SUa0vrwEfiyuCYRcy07E=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=mwUJKuAJ3M78qvTt/eVqkolmlmIHnVN8sIbJmxCyjhSe4hOPV7kZJ3hr8KuqREo2Pq2845xB9Ul73DQ+yNemwOcfN/DsfNmizXYDImf7GVR0LvAmWXtItRkALRka9z2D1YrjHW9rnSK9v/P+picxmWCKNFxGiyzL82qCcmT6hgk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RPYK72Pk; arc=none smtp.client-ip=209.85.217.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vs1-f52.google.com with SMTP id ada2fe7eead31-470646192b6so85141137.3 for ; Fri, 23 Feb 2024 09:38:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708709901; x=1709314701; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=3y4C+5bS7QyJOy/gmK5i4+I/ZRvWBjtUwEUpl15Fdro=; b=RPYK72PkG5UXU8sJeoyIFLs7L5IU10EnQEZy5/3UDcpc0C21JmDVhTYe7UfaAL5vgx dLeVnKeTbB3OFuUpCC1SLUh1IrgGYD2nd6ZDVZZxRc1XvVWUjMopKMNrTJQxhxIYzc9+ P95P17aoFkyckL2vsbdbrGaeAf6aq38OKUw9gUfmIgjWdedrLSLoT78KWilUcS061L8C QKXmkACAxCwJ1giR+2TWlRxvwXGmKWv/8eP3C3NjreICYZjcON4kxIUsg4mKpDuKkDoW 1J+WPgCQ+SGEVchgvQ8LrOf93rQmRmv6yUZbP6KespKtcEHslupqWXrDJBy0kv4scJs0 /bnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708709901; x=1709314701; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3y4C+5bS7QyJOy/gmK5i4+I/ZRvWBjtUwEUpl15Fdro=; b=DbkmoQjMcza8P0Jfy+h5kyrsg2Y6mTPI8HmKgfA/CrbivyZALPIv/H5CE1ZIqT+Bwn prgvauymEd9zYfsEqVe46D6/J/2cB+6Ra7Uq/gFEVvHeqd5iezOZVcakLkcaqiZplpEW gXxFOW0xIcpJOTwNM1objur4/3AWqQ+87tTN7btYeFCh8esQMR/mOvIAd0B5k/dIJbTr jJsyj0iO0xNczetLsdmI4W3/I81yPehXGbwlX9LnyXcnCX+9OGDifjNtWyV4E0GKjWkQ ZXqWBa/RZx/PboCLoIlgw/Ayx64/WkMqNF6lwy2ewbiOhA02YM+PU5vvNGCEaTve9TJg c4rg== X-Gm-Message-State: AOJu0YxJZifJ9CbUaFwb7A6vGbb7rgbVEp0rxNhj+kXPjW/BmLFT/WSj DWDFR4mmV5byk1TfRSBUp/gHLpfMtkDp6/7y6ufQdINlP2SwcRhu3R9WiQnT X-Received: by 2002:a05:6102:c03:b0:470:54fa:b366 with SMTP id x3-20020a0561020c0300b0047054fab366mr833853vss.16.1708709901362; Fri, 23 Feb 2024 09:38:21 -0800 (PST) Received: from lvondent-mobl4.. (071-047-239-151.res.spectrum.com. [71.47.239.151]) by smtp.gmail.com with ESMTPSA id ca4-20020a0561300b0400b007d67af483d9sm2476353uab.35.2024.02.23.09.38.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 09:38:20 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v1] Bluetooth: btintel: Fixe build regression Date: Fri, 23 Feb 2024 12:38:18 -0500 Message-ID: <20240223173819.973508-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Luiz Augusto von Dentz This fixes the following build regression: drivers-bluetooth-btintel.c-btintel_read_version()-warn: passing-zero-to-PTR_ERR Fixes: 36618e0d5a6d ("Bluetooth: btintel: Fix null ptr deref in btintel_read_version") Signed-off-by: Luiz Augusto von Dentz --- drivers/bluetooth/btintel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c index a083c4b8621c..6ba7f5d1b837 100644 --- a/drivers/bluetooth/btintel.c +++ b/drivers/bluetooth/btintel.c @@ -435,13 +435,13 @@ int btintel_read_version(struct hci_dev *hdev, struct intel_version *ver) struct sk_buff *skb; skb = __hci_cmd_sync(hdev, 0xfc05, 0, NULL, HCI_CMD_TIMEOUT); - if (IS_ERR_OR_NULL(skb)) { + if (IS_ERR(skb)) { bt_dev_err(hdev, "Reading Intel version information failed (%ld)", PTR_ERR(skb)); return PTR_ERR(skb); } - if (skb->len != sizeof(*ver)) { + if (!skb || skb->len != sizeof(*ver)) { bt_dev_err(hdev, "Intel version event size mismatch"); kfree_skb(skb); return -EILSEQ; -- 2.43.0