From: Hui Li <nami.li@atheros.com>
To: <linux-bluetooth@vger.kernel.org>
Cc: Hui Li <nami@qca.qualcomm.com>
Subject: [PATCH obexd] Return correct obex service driver in obex_session_start
Date: Thu, 30 Jun 2011 15:34:54 +0800 [thread overview]
Message-ID: <1309419294-9903-1-git-send-email-nami.li@atheros.com> (raw)
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
next reply other threads:[~2011-06-30 7:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-30 7:34 Hui Li [this message]
2011-06-30 8:24 ` [PATCH obexd] Return correct obex service driver in obex_session_start 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1309419294-9903-1-git-send-email-nami.li@atheros.com \
--to=nami.li@atheros.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=nami@qca.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox