Message ID | 20230915202447.3521406-1-luiz.dentz@gmail.com |
---|---|
State | New |
Headers | show |
Series | Bluetooth: hci_codec: Fix leaking content of local_codecs | 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=784822 ---Test result--- Test Summary: CheckPatch PASS 0.91 seconds GitLint PASS 0.37 seconds SubjectPrefix PASS 0.14 seconds BuildKernel PASS 33.48 seconds CheckAllWarning WARNING 36.77 seconds CheckSparse WARNING 41.98 seconds CheckSmatch WARNING 116.36 seconds BuildKernel32 PASS 32.39 seconds TestRunnerSetup PASS 492.52 seconds TestRunner_l2cap-tester PASS 29.93 seconds TestRunner_iso-tester PASS 49.64 seconds TestRunner_bnep-tester PASS 9.88 seconds TestRunner_mgmt-tester PASS 225.79 seconds TestRunner_rfcomm-tester PASS 15.15 seconds TestRunner_sco-tester PASS 18.73 seconds TestRunner_ioctl-tester PASS 16.71 seconds TestRunner_mesh-tester PASS 12.59 seconds TestRunner_smp-tester PASS 13.48 seconds TestRunner_userchan-tester PASS 10.36 seconds IncrementalBuild PASS 30.54 seconds Details ############################## Test: CheckAllWarning - WARNING Desc: Run linux kernel with all warning enabled Output: net/bluetooth/hci_core.c: In function ‘hci_register_dev’:net/bluetooth/hci_core.c:2620:47: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 5 [-Wformat-truncation=] 2620 | snprintf(hdev->name, sizeof(hdev->name), "hci%d", id); | ^~net/bluetooth/hci_core.c:2620:43: note: directive argument in the range [0, 2147483647] 2620 | snprintf(hdev->name, sizeof(hdev->name), "hci%d", id); | ^~~~~~~net/bluetooth/hci_core.c:2620:2: note: ‘snprintf’ output between 5 and 14 bytes into a destination of size 8 2620 | snprintf(hdev->name, sizeof(hdev->name), "hci%d", id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ############################## Test: CheckSparse - WARNING Desc: Run sparse tool with linux kernel Output: net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h): ############################## Test: CheckSmatch - WARNING Desc: Run smatch tool with source Output: net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h): --- Regards, Linux Bluetooth
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index db4f28d68d71..91895bfb6b2d 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -2784,6 +2784,7 @@ void hci_release_dev(struct hci_dev *hdev) hci_conn_params_clear_all(hdev); hci_discovery_filter_clear(hdev); hci_blocked_keys_clear(hdev); + hci_codec_list_clear(&hdev->local_codecs); hci_dev_unlock(hdev); ida_simple_remove(&hci_index_ida, hdev->id); diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index d532f4c139f9..ee2c418f8e06 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -33,6 +33,7 @@ #include "hci_request.h" #include "hci_debugfs.h" +#include "hci_codec.h" #include "a2mp.h" #include "amp.h" #include "smp.h" @@ -301,6 +302,7 @@ static u8 hci_cc_reset(struct hci_dev *hdev, void *data, struct sk_buff *skb) hci_bdaddr_list_clear(&hdev->le_accept_list); hci_bdaddr_list_clear(&hdev->le_resolv_list); + hci_codec_list_clear(&hdev->local_codecs); return rp->status; }