]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix sk_sndtimeo initialization for L2CAP socket
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Wed, 4 Jan 2012 11:10:41 +0000 (12:10 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 15 Feb 2012 11:09:25 +0000 (13:09 +0200)
commit8b1b5f817b5423e14378532b75374c59368f5ed2
treea18d24a87e98bad9965731a0282fe0216f73a439
parentb3de6689833dfadab04f94c2290db7f89cc7ac90
Bluetooth: Fix sk_sndtimeo initialization for L2CAP socket

sk_sndtime value should be specified in jiffies thus initial value
needs to be converted from miliseconds. Otherwise this timeout is
unreliable when CONFIG_HZ is not set to 1000.

Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_sock.c