Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH obexd]  Return correct obex service driver in obex_session_start
@ 2011-06-30  7:34 Hui Li
  2011-06-30  8:24 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 7+ messages in thread
From: Hui Li @ 2011-06-30  7:34 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Hui Li

From: Hui Li <nami@qca.qualcomm.com>

 The original return value is NULL.
---
 src/obex.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/obex.c b/src/obex.c
index 49d9c18..978894e 100644
--- a/src/obex.c
+++ b/src/obex.c
@@ -1377,8 +1377,7 @@ int obex_session_start(GIOChannel *io, uint16_t tx_mtu, uint16_t rx_mtu,

 	os = g_new0(struct obex_session, 1);

-	os->service = obex_service_driver_find(server->drivers, NULL,
-							0, NULL, 0);
+	os->service = server->drivers->data;
 	os->server = server;
 	os->rx_mtu = rx_mtu != 0 ? rx_mtu : DEFAULT_RX_MTU;
 	os->tx_mtu = tx_mtu != 0 ? tx_mtu : DEFAULT_TX_MTU;
--
1.7.1


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

end of thread, other threads:[~2011-07-01  7:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-30  7:34 [PATCH obexd] Return correct obex service driver in obex_session_start Hui Li
2011-06-30  8:24 ` Luiz Augusto von Dentz
2011-06-30 10:01   ` Li, Nami
2011-06-30 10:25     ` Slawomir Bochenski
2011-07-01  2:50       ` Li, Nami
2011-07-01  6:52         ` Luiz Augusto von Dentz
2011-07-01  7:50           ` Li, Nami

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox