linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] neard: Fix passing negative error code to strerror
@ 2013-01-29  8:54 Szymon Janc
  2013-01-29  8:54 ` [PATCH 2/2] neard: Fix memory leak on registering as agent Szymon Janc
  2013-01-29 21:59 ` [PATCH 1/2] neard: Fix passing negative error code to strerror Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Szymon Janc @ 2013-01-29  8:54 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

error_reply expects non-negative error code.
---
 plugins/neard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/neard.c b/plugins/neard.c
index 380eddc..a68500a 100644
--- a/plugins/neard.c
+++ b/plugins/neard.c
@@ -636,7 +636,7 @@ static DBusMessage *push_oob(DBusConnection *conn, DBusMessage *msg, void *data)
 
 	agent = adapter_get_agent(adapter);
 	if (!agent)
-		return error_reply(msg, -ENONET);
+		return error_reply(msg, ENONET);
 
 	io_cap = agent_get_io_capability(agent);
 	agent_unref(agent);
-- 
1.8.1.1


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

end of thread, other threads:[~2013-01-29 21:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-29  8:54 [PATCH 1/2] neard: Fix passing negative error code to strerror Szymon Janc
2013-01-29  8:54 ` [PATCH 2/2] neard: Fix memory leak on registering as agent Szymon Janc
2013-01-29 21:59 ` [PATCH 1/2] neard: Fix passing negative error code to strerror 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).