Bluetooth: Fix issue with return value of rfcomm_sock_sendmsg()
authorVictor Shcherbatyuk <victor.shcherbatyuk@tomtom.com>
Thu, 15 Jan 2009 20:52:12 +0000 (21:52 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Feb 2009 05:14:21 +0000 (06:14 +0100)
commit91aa35a5aa3540223066bf6b51c935418c63a35d
treeff9e15db0b2e029a7704e4ba8b1f138b6805dbef
parentf11c179eea77b8afc2fb7cb4b9a8815b85e3c16f
Bluetooth: Fix issue with return value of rfcomm_sock_sendmsg()

In case of connection failures the rfcomm_sock_sendmsg() should return
an error and not a 0 value.

Signed-off-by: Victor Shcherbatyuk <victor.shcherbatyuk@tomtom.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/rfcomm/sock.c