Message ID | 1644890516-65362-1-git-send-email-wangqing@vivo.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 8c7d84a33ff76f06413fac6a62b528b8eb073f07 |
Headers | show |
Series | net: bluetooth: assign len after null check | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/checkpatch | success | Checkpatch PASS |
tedd_an/gitlint | success | Gitlint PASS |
tedd_an/subjectprefix | fail | "Bluetooth: " is not specified in the subject |
tedd_an/buildkernel | success | Build Kernel PASS |
tedd_an/buildkernel32 | success | Build Kernel32 PASS |
tedd_an/incremental_build | success | Pass |
tedd_an/testrunnersetup | success | Test Runner Setup PASS |
tedd_an/testrunnerl2cap-tester | success | Total: 40, Passed: 40 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnerbnep-tester | success | Total: 1, Passed: 1 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnermgmt-tester | success | Total: 493, Passed: 493 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnerrfcomm-tester | success | Total: 10, Passed: 10 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnersco-tester | success | Total: 12, Passed: 12 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnersmp-tester | success | Total: 8, Passed: 8 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunneruserchan-tester | success | Total: 4, Passed: 4 (100.0%), Failed: 0, Not Run: 0 |
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=614340 ---Test result--- Test Summary: CheckPatch PASS 1.62 seconds GitLint PASS 0.94 seconds SubjectPrefix FAIL 0.93 seconds BuildKernel PASS 29.24 seconds BuildKernel32 PASS 25.80 seconds Incremental Build with patchesPASS 36.01 seconds TestRunner: Setup PASS 460.64 seconds TestRunner: l2cap-tester PASS 13.05 seconds TestRunner: bnep-tester PASS 5.87 seconds TestRunner: mgmt-tester PASS 100.79 seconds TestRunner: rfcomm-tester PASS 7.37 seconds TestRunner: sco-tester PASS 7.28 seconds TestRunner: smp-tester PASS 7.21 seconds TestRunner: userchan-tester PASS 6.09 seconds Details ############################## Test: SubjectPrefix - FAIL - 0.93 seconds Check subject contains "Bluetooth" prefix "Bluetooth: " is not specified in the subject --- Regards, Linux Bluetooth
Hi Qing, > len should be assigned after a null check > > Signed-off-by: Wang Qing <wangqing@vivo.com> > --- > net/bluetooth/mgmt_util.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel
diff --git a/net/bluetooth/mgmt_util.c b/net/bluetooth/mgmt_util.c index edee60b..37eef2c --- a/net/bluetooth/mgmt_util.c +++ b/net/bluetooth/mgmt_util.c @@ -77,11 +77,12 @@ int mgmt_send_event_skb(unsigned short channel, struct sk_buff *skb, int flag, { struct hci_dev *hdev; struct mgmt_hdr *hdr; - int len = skb->len; + int len; if (!skb) return -EINVAL; + len = skb->len; hdev = bt_cb(skb)->mgmt.hdev; /* Time stamp */