OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d6a501
)
Avoid null pointer exception for invalid L2CAP channels
author
Srinu Jella
<sjella@codeaurora.org>
Fri, 30 May 2014 15:45:01 +0000
(21:15 +0530)
committer
Andre Eisenbach
<eisenbach@google.com>
Thu, 28 May 2015 17:04:32 +0000
(10:04 -0700)
Change-Id: I8ac40e9cfe6dd015f40c6f493727e123a0d247e6
stack/l2cap/l2c_csm.c
patch
|
blob
|
history
diff --git
a/stack/l2cap/l2c_csm.c
b/stack/l2cap/l2c_csm.c
index
97372ba
..
7a77f36
100644
(file)
--- a/
stack/l2cap/l2c_csm.c
+++ b/
stack/l2cap/l2c_csm.c
@@
-1024,7
+1024,8
@@
static void l2c_csm_open (tL2C_CCB *p_ccb, UINT16 event, void *p_data)
break;
case L2CEVT_L2CAP_DATA: /* Peer data packet rcvd */
- (*p_ccb->p_rcb->api.pL2CA_DataInd_Cb)(p_ccb->local_cid, (BT_HDR *)p_data);
+ if((p_ccb->p_rcb) && (p_ccb->p_rcb->api.pL2CA_DataInd_Cb))
+ (*p_ccb->p_rcb->api.pL2CA_DataInd_Cb)(p_ccb->local_cid, (BT_HDR *)p_data);
break;
case L2CEVT_L2CA_DISCONNECT_REQ: /* Upper wants to disconnect */