linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] btio: Fix typo in error message
@ 2014-06-13  9:34 Szymon Janc
  2014-06-13  9:34 ` [PATCH 2/2] btio: Fix not setting getsockopt optlen for BT_SNDMTU Szymon Janc
  2014-06-13 11:33 ` [PATCH 1/2] btio: Fix typo in error message Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Szymon Janc @ 2014-06-13  9:34 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

---
 btio/btio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/btio/btio.c b/btio/btio.c
index 5f91171..15057f6 100644
--- a/btio/btio.c
+++ b/btio/btio.c
@@ -1087,7 +1087,7 @@ parse_opts:
 
 			if (getsockopt(sock, SOL_BLUETOOTH, BT_SNDMTU,
 							&l2o.omtu, &len) < 0) {
-				ERROR_FAILED(err, "getsockopt(BT_RCVMTU)",
+				ERROR_FAILED(err, "getsockopt(BT_SNDMTU)",
 									errno);
 				return FALSE;
 			}
-- 
1.9.1


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

* [PATCH 2/2] btio: Fix not setting getsockopt optlen for BT_SNDMTU
  2014-06-13  9:34 [PATCH 1/2] btio: Fix typo in error message Szymon Janc
@ 2014-06-13  9:34 ` Szymon Janc
  2014-06-13 11:33 ` [PATCH 1/2] btio: Fix typo in error message Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Szymon Janc @ 2014-06-13  9:34 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

---
 btio/btio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/btio/btio.c b/btio/btio.c
index 15057f6..50760f0 100644
--- a/btio/btio.c
+++ b/btio/btio.c
@@ -1085,6 +1085,7 @@ parse_opts:
 				break;
 			}
 
+			len = sizeof(l2o.omtu);
 			if (getsockopt(sock, SOL_BLUETOOTH, BT_SNDMTU,
 							&l2o.omtu, &len) < 0) {
 				ERROR_FAILED(err, "getsockopt(BT_SNDMTU)",
-- 
1.9.1


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

* Re: [PATCH 1/2] btio: Fix typo in error message
  2014-06-13  9:34 [PATCH 1/2] btio: Fix typo in error message Szymon Janc
  2014-06-13  9:34 ` [PATCH 2/2] btio: Fix not setting getsockopt optlen for BT_SNDMTU Szymon Janc
@ 2014-06-13 11:33 ` Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2014-06-13 11:33 UTC (permalink / raw)
  To: Szymon Janc; +Cc: linux-bluetooth

Hi Szymon,

On Fri, Jun 13, 2014, Szymon Janc wrote:
> ---
>  btio/btio.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Both patches have been applied. Thanks.

Johan

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

end of thread, other threads:[~2014-06-13 11:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-13  9:34 [PATCH 1/2] btio: Fix typo in error message Szymon Janc
2014-06-13  9:34 ` [PATCH 2/2] btio: Fix not setting getsockopt optlen for BT_SNDMTU Szymon Janc
2014-06-13 11:33 ` [PATCH 1/2] btio: Fix typo in error message Johan Hedberg

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).