mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
Bluetooth: btintel_pcie: Fix REVERSE_INULL issue reported by coverity
check pdata return of skb_pull_data, instead of data.
Fixes: c2b636b3f7
("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>
This commit is contained in:
parent
897e612056
commit
3f35d9b3e9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user