diff options
author | Vijay Satija <vijay.satija@intel.com> | 2024-05-17 15:24:47 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-06-28 14:30:25 -0400 |
commit | 3f35d9b3e9a0e3c4684252ab91e648b96a179482 (patch) | |
tree | 51832bf54d9579c0c1cb559c1395c2b5213f707b /drivers/bluetooth | |
parent | 897e6120566f1c108b85fefe78d1c1bddfbd5988 (diff) | |
download | linux-3f35d9b3e9a0e3c4684252ab91e648b96a179482.tar.gz linux-3f35d9b3e9a0e3c4684252ab91e648b96a179482.tar.bz2 linux-3f35d9b3e9a0e3c4684252ab91e648b96a179482.zip |
Bluetooth: btintel_pcie: Fix REVERSE_INULL issue reported by coverity
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 <vijay.satija@intel.com>
Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btintel_pcie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c index 5b6805d87fcf..dd3c0626c72d 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; |