Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp823326lqo; Fri, 17 May 2024 02:40:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXaN88a6PiH9Zp7tmq1t9PL/OeItxmPJLg/EoAHZ9ikjhJ9rP+u/kyzThxwtl45Vqg+Cq3QZK1CuOo7R6eKyC4ANKHgK9bqf1Y+g6IOA== X-Google-Smtp-Source: AGHT+IGIIw8NRTI23Z31gcij/fu+tT8yp9ewpqUK6DzeGKPOA5quytaY6I3kPI1JcLkRzcHn9NMO X-Received: by 2002:a05:6214:3101:b0:6a0:a98a:4881 with SMTP id 6a1803df08f44-6a16815e375mr218485476d6.21.1715938840832; Fri, 17 May 2024 02:40:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715938840; cv=pass; d=google.com; s=arc-20160816; b=hoQAqaA2biwjUBimOrCkn68x2L5cL9B1FcwlB6VaTZpRu4/T05BAfPg7c34/0NnlFF RBtKgBakTTZc9mPFzfSkeFuKYnx7ZBLqM3hfDN75Cnn7xvAxJbGVZlewpIJgV8S2BvwZ gpNx8XfAg9wzj8s1EyRDeHhVaJYxb0nvkQhB+6hnFPlCZVf2dvow0PXtJCpOFpFrTLqV fJfXvl65QCUgryk4qvuBkHYb8Iot/AD8mlLKxWvK1iVQd5Xk7/VMX3QHwfZkw6/vBfJP icyVyR/PgdTB7RpJI79k1Spp6NmhryJRh172LlffUuzr2/XGVQIppdb7yWgSQc1WnTqY FrdA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=H/sO9HdSr7X8ew5pRRoUjGKRMwlhq3dRfLeeCDTKl9k=; fh=typ3KNCgtf8kQK+wuxmoZRfRNCQrsQHUZgaUEsFKavk=; b=pJxvthI1I+oKCVc2VSBo8GTiwNUUL2It1PeLOqGgu2EOQEDiHC2mY2ikbaJg3ESFYZ YrE8ECfHIbOrDJz9SwQz7ICvc0eDbioGytuSw3lRxrkTu4B61iQsoT5kr93CWWW5Q+Ki 1nooxth3PMU5e0nn+miDKNhAZybNU8dT9DQlRAy/JHbCfoXChl/RpMDpijQ/m8d88nsr JPbgjBU9fSd4K1JsRoxTGnjcaBEyuub6cwkwK9sz0tG/GgRqIL7/d4B75V0rHNs+KTrG oHXN+mzFy7gu08SnXDX50Gv3nRom6Tqm4JkRF28rFLtH4Wb2wHmzL44u3nNczXKmBLZJ O0fg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="gN/RDQ79"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-bluetooth+bounces-4760-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f29a8c2si183055936d6.262.2024.05.17.02.40.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 02:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4760-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="gN/RDQ79"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-bluetooth+bounces-4760-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 706471C21F54 for ; Fri, 17 May 2024 09:40:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D178286AF; Fri, 17 May 2024 09:40:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gN/RDQ79" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (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 71C1C18C05 for ; Fri, 17 May 2024 09:40:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715938832; cv=none; b=IhBK+KPNdXyfwne8NQpXpEg1Z752GlFK+4OfwqcwEhfhFrWHS/p85LQvIqsK4bwTWN9B5tXgC6+Ss7vNtRjBc13pkKmwbVNcaH2hb90hKDFVReNmr4ZjltKI6j2m+IfInihbo5hrFhOou9NJb42At/NCeBF83Dkqhj5xbx7r+4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715938832; c=relaxed/simple; bh=UelzzseOVEb5xnEvTVZqUl1Wg2Y8s5/14CVh7FmByKc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FKqdgzn6SCP+GYbMMwN0CyjADHDEA3t+b7JT3SE/q/clsjaDMUxmKWS34pwFQKI4mS2Zcj2M7wZ5UdTMs/jSGCw4tx/2I+XZKAFAo3DKuF8vQEnNaXBDuapV8VDThhn4iCanuYo1/esjZ9/sTpK5n08BoEPc8QddJgSom/azsk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gN/RDQ79; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715938830; x=1747474830; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UelzzseOVEb5xnEvTVZqUl1Wg2Y8s5/14CVh7FmByKc=; b=gN/RDQ79v7FJ3ayX846YhDBuW0p9CZWYdnt7zWAzfb83Ht3HipAm+2iv rRO69yAkKgEZ14Cj0tlX5VtpPrPUAEWvVm6jckoBpgeXc6b/0/Xnmd177 86x0NYb9XOHl4QFMGGRhHd02UtV3LS6XNlhYTQ75D1ullTLMbHOd2xlBK WzF35ROWtxYRtbYnp5fZe+mV+C4Wq0aajGBSpgJG0QdHuf/YeQD6UcLWU Ygjl6d0/KP1G58+V3FvcJKt2jtX2ibGAQr0DmtzeLLl0jyYqvQeLVj2ev SVq+LpGyiqpEg69hRC1ZFuAV2Pf/S8OTY2CG1mJDee4s3jWjCmrh/Bgkd g==; X-CSE-ConnectionGUID: q+ruA1LuSTGKJ1VoPG9nww== X-CSE-MsgGUID: DoO2b/rTTs2Lp42LwioDxg== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="11976648" X-IronPort-AV: E=Sophos;i="6.08,167,1712646000"; d="scan'208";a="11976648" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2024 02:40:29 -0700 X-CSE-ConnectionGUID: aRtrK44KRaWZ3ZfXI3MsDA== X-CSE-MsgGUID: 06p2covwRWCpyWtomCvLDA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,167,1712646000"; d="scan'208";a="31676478" Received: from intel-lenovo-legion-y540-15irh-pg0.iind.intel.com ([10.224.186.95]) by fmviesa007.fm.intel.com with ESMTP; 17 May 2024 02:40:27 -0700 From: Kiran K To: linux-bluetooth@vger.kernel.org Cc: ravishankar.srivatsa@intel.com, chethan.tumkur.narayan@intel.com, chandrashekar.devegowda@intel.com, vijay.satija@intel.com, Kiran K Subject: [PATCH v3 3/3] Bluetooth: btintel_pcie: Fix REVERSE_INULL issue reported by coverity Date: Fri, 17 May 2024 15:24:47 +0530 Message-Id: <20240517095447.956132-3-kiran.k@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240517095447.956132-1-kiran.k@intel.com> References: <20240517095447.956132-1-kiran.k@intel.com> 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: Vijay Satija check pdata return of skb_pull_data, instead of data. Fixes: c2b636b3f788 ("Bluetooth: btintel_pcie: Add support for PCIe transport") Signed-off-by: Vijay Satija Signed-off-by: Kiran K --- drivers/bluetooth/btintel_pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c index d8f82e0f6435..58144c82b1cb 100644 --- a/drivers/bluetooth/btintel_pcie.c +++ b/drivers/bluetooth/btintel_pcie.c @@ -382,7 +382,7 @@ static int btintel_pcie_recv_frame(struct btintel_pcie_data *data, /* The first 4 bytes indicates the Intel PCIe specific packet type */ pdata = skb_pull_data(skb, BTINTEL_PCIE_HCI_TYPE_LEN); - if (!data) { + if (!pdata) { bt_dev_err(hdev, "Corrupted packet received"); ret = -EILSEQ; goto exit_error; -- 2.40.1