Message ID | 20230119020406.3900747-1-iam@sung-woo.kim (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | L2CAP: Fix null-ptr-deref in l2cap_sock_set_shutdown_cb | 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: " prefix is not specified in the subject |
tedd_an/BuildKernel | success | BuildKernel PASS |
tedd_an/CheckAllWarning | success | CheckAllWarning PASS |
tedd_an/CheckSparse | success | CheckSparse PASS |
tedd_an/CheckSmatch | success | CheckSparse PASS |
tedd_an/BuildKernel32 | success | BuildKernel32 PASS |
tedd_an/TestRunnerSetup | success | TestRunnerSetup PASS |
tedd_an/TestRunner_l2cap-tester | success | TestRunner PASS |
tedd_an/TestRunner_iso-tester | success | TestRunner PASS |
tedd_an/TestRunner_bnep-tester | success | TestRunner PASS |
tedd_an/TestRunner_mgmt-tester | success | TestRunner PASS |
tedd_an/TestRunner_rfcomm-tester | success | TestRunner PASS |
tedd_an/TestRunner_sco-tester | success | TestRunner PASS |
tedd_an/TestRunner_ioctl-tester | success | TestRunner PASS |
tedd_an/TestRunner_mesh-tester | success | TestRunner PASS |
tedd_an/TestRunner_smp-tester | success | TestRunner PASS |
tedd_an/TestRunner_userchan-tester | success | TestRunner PASS |
tedd_an/IncrementalBuild | success | Incremental Build PASS |
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=713488 ---Test result--- Test Summary: CheckPatch PASS 1.74 seconds GitLint PASS 0.27 seconds SubjectPrefix FAIL 0.45 seconds BuildKernel PASS 43.01 seconds CheckAllWarning PASS 46.26 seconds CheckSparse PASS 51.28 seconds CheckSmatch PASS 136.55 seconds BuildKernel32 PASS 40.25 seconds TestRunnerSetup PASS 579.35 seconds TestRunner_l2cap-tester PASS 20.05 seconds TestRunner_iso-tester PASS 21.75 seconds TestRunner_bnep-tester PASS 7.20 seconds TestRunner_mgmt-tester PASS 136.12 seconds TestRunner_rfcomm-tester PASS 11.25 seconds TestRunner_sco-tester PASS 10.28 seconds TestRunner_ioctl-tester PASS 12.13 seconds TestRunner_mesh-tester PASS 9.21 seconds TestRunner_smp-tester PASS 10.40 seconds TestRunner_userchan-tester PASS 7.64 seconds IncrementalBuild PASS 38.50 seconds Details ############################## Test: SubjectPrefix - FAIL Desc: Check subject contains "Bluetooth" prefix Output: "Bluetooth: " prefix is not specified in the subject --- Regards, Linux Bluetooth
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c index ca8f07f35..b9381d45d 100644 --- a/net/bluetooth/l2cap_sock.c +++ b/net/bluetooth/l2cap_sock.c @@ -1681,9 +1681,11 @@ static void l2cap_sock_set_shutdown_cb(struct l2cap_chan *chan) { struct sock *sk = chan->data; - lock_sock(sk); - sk->sk_shutdown = SHUTDOWN_MASK; - release_sock(sk); + if (sk) { + lock_sock(sk); + sk->sk_shutdown = SHUTDOWN_MASK; + release_sock(sk); + } } static long l2cap_sock_get_sndtimeo_cb(struct l2cap_chan *chan)
Fix a critical typo on the prev patch - Sorry! Signed-off-by: Sungwoo Kim <iam@sung-woo.kim> --- net/bluetooth/l2cap_sock.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)