Bluetooth: Hack: Don't dereference null pointer.
authorNick Pelly <npelly@google.com>
Thu, 8 Apr 2010 23:23:32 +0000 (16:23 -0700)
committerNick Pelly <npelly@google.com>
Thu, 8 Apr 2010 23:36:11 +0000 (16:36 -0700)
commit612cd5aa166a6f22660ebd104a08a40576c44a36
treecabf50e7f6ba9f79ab8f3407adcd49af47d242a7
parent3274abc33ec2c170acd6fd2732c271ad9dd0b17f
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