]> git.baikalelectronics.ru Git - kernel.git/commit
[Bluetooth] Fix uninitialized return value for RFCOMM sendmsg()
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Jan 2007 01:16:31 +0000 (02:16 +0100)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 9 Jan 2007 08:29:55 +0000 (00:29 -0800)
commita0b8bb048e4fe2fbf6f89ca2d7f4f683c07c1dbf
treeccbae1cf287db409d62c4178d417337ed4b409d1
parente27dbe9b6f051de0257a7474b6dcf5689e0df977
[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>
net/bluetooth/rfcomm/sock.c