[PATCH 2/6] android/pan: Return correct error value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If problem with bt_io_listen occurs the input/output error is the most
aproperiate error code to problem rather than invalid argument error
code.
---
 android/pan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/pan.c b/android/pan.c
index 3471805..972af89 100644
--- a/android/pan.c
+++ b/android/pan.c
@@ -636,7 +636,7 @@ static int register_nap_server(void)
 		destroy_nap_device();
 		error("%s", gerr->message);
 		g_error_free(gerr);
-		return -EINVAL;
+		return -EIO;
 	}
 
 	return 0;
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux