OSDN Git Service

Add null checks for L2CAP socket callback
authorSrinu Jella <sjella@codeaurora.org>
Wed, 25 Mar 2015 07:36:38 +0000 (13:06 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 14 Oct 2016 20:10:40 +0000 (20:10 +0000)
commit62e6c14cde2746d51d685290706ce23c5a29f418
tree3201c3395555206e5a8e83e69837a63efd89ba9d
parent682ff8e512f26236135550e6f8f4b55d2a20b80a
Add null checks for L2CAP socket callback

Use Case: Bluetooth process crashed while sending the file
to remote device.

Steps: Send a file over L2CAP (OBEX over L2CAP) to remote device

Failure: BT process will crash and restarted automatically

Root Cause: L2CAP socket callback reset to null on error
condition, and when other function try to dereference it, this
leads to BT crash.

Fix: Added null checks for L2CAP socket callback

Change-Id: I2e4f20278fcc8a09bd4dbd507a6c4147e0de93c1
bta/jv/bta_jv_act.c