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>
Tue, 14 Jun 2011 16:09:17 +0000 (09:09 -0700)
commitf86e4b09b7297ac880b88bb19e23661dfeeb47f7
tree59e75c4f0d7c0f332b4edffe4d1be492ec1d426a
parentc172849ed873e4785bdf9be18d5298427239f33a
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_core.c