[PORT FROM R2] Bluetooth: phone hang while transferring files via BT
authorOvidiu Beldie <ovidiux.beldie@intel.com>
Mon, 23 Jan 2012 13:28:09 +0000 (14:28 +0100)
committerbuildbot <buildbot@intel.com>
Wed, 25 Jan 2012 17:07:48 +0000 (09:07 -0800)
commitf9c6ce04e68936674f1ad243a5128dbbe3176380
tree700da424e67807bf1b7158ddbafdd5501fc2f9e6
parente8853fcc15da8d7676b931480ac9f926d38d3779
[PORT FROM R2] Bluetooth: phone hang while transferring files via BT

BZ: 8203 17106

Borqs-Id: bd3021797b4bc7d192a4cbae42375befbc79d84f
Borqs-Contact: b132 <stone.zhang@borqs.com>
Commit-Date: Wed Aug 24 10:40:33 PDT 2011

borqsbtx: 0004232
While receiving files via opp, turn on UMS mode and then turn UMS off. Phone hang appeared when
trying to receive a file again.
From log, there is a NULL pointer in l2cap_sock_sendmsg(). So handle the exception.

And add a log in headsetservice to track the connection performance.

Change-Id: I2ef19bd476dc601c9a314a00839817cc2b4cdb40
Orig-Change-Id: Idaed4e3b216192642f900b76f7a9ff66aa9636d8
Signed-off-by: Ovidiu Beldie <ovidiux.beldie@intel.com>
Reviewed-on: http://android.intel.com:8080/32735
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Peix, FabienX <fabienx.peix@intel.com>
Tested-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
net/bluetooth/l2cap_sock.c