aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMat Martineau <mathewm@codeaurora.org>2011-06-29 17:35:21 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-06-30 17:25:43 -0400
commit942ecc9c4643db5ce071562e0a23f99464d6b461 (patch)
treef81de547f9206ffe749b4b9bf75d2a7864757d71 /net
parent774e5651460ee7c688914fd76b6caa1675de355c (diff)
Bluetooth: ERTM timeouts need to be converted to jiffies
ERTM timeouts are defined in milliseconds, but need to be converted to jiffies when passed to mod_timer(). Signed-off-by: Mat Martineau <mathewm@codeaurora.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/l2cap_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index ab2bfcf3cd2..fb523813300 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -225,7 +225,7 @@ static void l2cap_set_timer(struct l2cap_chan *chan, struct timer_list *timer, l
225{ 225{
226 BT_DBG("chan %p state %d timeout %ld", chan->sk, chan->state, timeout); 226 BT_DBG("chan %p state %d timeout %ld", chan->sk, chan->state, timeout);
227 227
228 if (!mod_timer(timer, jiffies + timeout)) 228 if (!mod_timer(timer, jiffies + msecs_to_jiffies(timeout)))
229 chan_hold(chan); 229 chan_hold(chan);
230} 230}
231 231