Bluetooth: Hack: Don't dereference null pointer.
authorNick Pelly <npelly@google.com>
Thu, 8 Apr 2010 23:23:32 +0000 (16:23 -0700)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:31 +0000 (17:49 -0700)
commita43d3f835fa20875980d0a363f1543725d6dc55c
tree9b91175ac68bff6a17f1d75ddb0f03347ef02206
parent372a94c2ed0f4bc30e3efb9ef6544e234816b297
Bluetooth: Hack: Don't dereference null pointer.

This avoids the S305 panic during incoming connection.

S305 sends PSM 25 L2CAP connection request before the L2CAP info response.
When we receive that info response we crash on null pointer here.

Bug: 2127637
Change-Id: Ib637516251f46fa9a9c87ac015dc2f27df5a27fd
Signed-off-by: Nick Pelly <npelly@google.com>
net/bluetooth/l2cap.c