Message ID | 25f3428482241cd449bffa39ad964240ee28483a.1652306557.git.objelf@gmail.com |
---|---|
State | Accepted |
Commit | 0fab6361c4ba17d1b43a991bef4238a3c1754d35 |
Headers | show |
Series | Bluetooth: btmtksdio: fix use-after-free at btmtksdio_recv_event | expand |
This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=640725 ---Test result--- Test Summary: CheckPatch PASS 1.63 seconds GitLint PASS 0.98 seconds SubjectPrefix PASS 0.88 seconds BuildKernel PASS 32.10 seconds BuildKernel32 PASS 28.52 seconds Incremental Build with patchesPASS 40.80 seconds TestRunner: Setup PASS 527.35 seconds TestRunner: l2cap-tester PASS 19.60 seconds TestRunner: bnep-tester PASS 7.26 seconds TestRunner: mgmt-tester PASS 120.18 seconds TestRunner: rfcomm-tester PASS 11.25 seconds TestRunner: sco-tester PASS 10.74 seconds TestRunner: smp-tester PASS 10.85 seconds TestRunner: userchan-tester PASS 7.52 seconds --- Regards, Linux Bluetooth
diff --git a/drivers/bluetooth/btmtksdio.c b/drivers/bluetooth/btmtksdio.c index b6d77e04240c..4ae6631a7c29 100644 --- a/drivers/bluetooth/btmtksdio.c +++ b/drivers/bluetooth/btmtksdio.c @@ -379,6 +379,7 @@ static int btmtksdio_recv_event(struct hci_dev *hdev, struct sk_buff *skb) { struct btmtksdio_dev *bdev = hci_get_drvdata(hdev); struct hci_event_hdr *hdr = (void *)skb->data; + u8 evt = hdr->evt; int err; /* When someone waits for the WMT event, the skb is being cloned @@ -396,7 +397,7 @@ static int btmtksdio_recv_event(struct hci_dev *hdev, struct sk_buff *skb) if (err < 0) goto err_free_skb; - if (hdr->evt == HCI_EV_WMT) { + if (evt == HCI_EV_WMT) { if (test_and_clear_bit(BTMTKSDIO_TX_WAIT_VND_EVT, &bdev->tx_state)) { /* Barrier to sync with other CPUs */