]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[Bluetooth] Fix uninitialized return value for RFCOMM sendmsg()
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 25 Jan 2007 18:40:43 +0000 (19:40 +0100)
committerAdrian Bunk <bunk@stusta.de>
Thu, 25 Jan 2007 18:40:43 +0000 (19:40 +0100)
commita248193aae90d51be4981fec07bb97dd289bd534
tree819941edf3f5fc4602a82facfc8f5bca3d790a3f
parent79d1a7868cfc721a9e67248c502edaaed69b4c4a
[Bluetooth] Fix uninitialized return value for RFCOMM sendmsg()

When calling send() with a zero length parameter on a RFCOMM socket
it returns a positive value. In this rare case the variable err is
used uninitialized and unfortunately its value is returned.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/bluetooth/rfcomm/sock.c