linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix usage of sk_sndtimeo value in l2cap
@ 2011-11-10  9:37 Andrzej Kaczmarek
  2011-11-10  9:37 ` [PATCH 1/2] Buetooth: Revert "Fixed wrong L2CAP Sock timer value" Andrzej Kaczmarek
  2011-11-10  9:37 ` [PATCH 2/2] Bluetooth: Fix usage of sk_sndtimeo value Andrzej Kaczmarek
  0 siblings, 2 replies; 8+ messages in thread
From: Andrzej Kaczmarek @ 2011-11-10  9:37 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: kanak.gupta, ulrik.lauren, henrik.possung, Andrzej Kaczmarek

Hi,

It seems sk_sndtimeo is initialized incorrectly in l2cap_sock.c to
miliseconds, this will cause invalid value to be set or read using
SO_SNDTIMEO sockopt since it is assumed this value is specified in
jiffies.

Initial value of sk_sndtimeo was changed in 6be6b11f006840ba7d8d4b
and I belive this was because of regression introduced by commit
942ecc9c4643db5ce071562e0a23f99464d6b461.

My two patches revert mentioned commit and solve issue in proper way.
Regression introduced by 942ecc9c4643db5ce071562e0a23f99464d6b461 is
already fixed by other commit.


Andrzej Kaczmarek (2):
  Buetooth: Revert "Fixed wrong L2CAP Sock timer value"
  Bluetooth: Fix usage of sk_sndtimeo value

 net/bluetooth/l2cap_core.c |    8 ++++----
 net/bluetooth/l2cap_sock.c |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

-- 
on behalf of ST-Ericsson


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-12-18 23:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-10  9:37 [PATCH 0/2] Fix usage of sk_sndtimeo value in l2cap Andrzej Kaczmarek
2011-11-10  9:37 ` [PATCH 1/2] Buetooth: Revert "Fixed wrong L2CAP Sock timer value" Andrzej Kaczmarek
2011-11-10  9:37 ` [PATCH 2/2] Bluetooth: Fix usage of sk_sndtimeo value Andrzej Kaczmarek
2011-11-10  9:57   ` Andrei Emeltchenko
2011-11-10 10:13     ` Andrzej Kaczmarek
2011-11-10 10:35       ` Andrei Emeltchenko
2011-11-10 12:09         ` Andrzej Kaczmarek
2011-12-18 23:31   ` Gustavo Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).