linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv4 01/10] android/health: Add error check when creating app
@ 2014-06-27 15:16 Andrei Emeltchenko
  2014-06-27 15:16 ` [PATCHv4 02/10] android/health: Add HDP definitions Andrei Emeltchenko
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Andrei Emeltchenko @ 2014-06-27 15:16 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

---
 android/health.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/android/health.c b/android/health.c
index 7d64a63..0eeb0bd 100644
--- a/android/health.c
+++ b/android/health.c
@@ -820,6 +820,8 @@ static void bt_health_register_app(const void *buf, uint16_t len)
 
 	app = create_health_app(app_name, provider, srv_name, srv_descr,
 							cmd->num_of_mdep);
+	if (!app)
+		goto fail;
 
 	if (!queue_push_tail(apps, app))
 		goto fail;
-- 
1.8.3.2


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

end of thread, other threads:[~2014-06-29 12:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-27 15:16 [PATCHv4 01/10] android/health: Add error check when creating app Andrei Emeltchenko
2014-06-27 15:16 ` [PATCHv4 02/10] android/health: Add HDP definitions Andrei Emeltchenko
2014-06-27 15:16 ` [PATCHv4 03/10] android/health: Add handling MDL connection request Andrei Emeltchenko
2014-06-27 15:16 ` [PATCHv4 04/10] android/health: Refactor channel creation Andrei Emeltchenko
2014-06-27 15:16 ` [PATCHv4 05/10] android/health: Add channel connect Andrei Emeltchenko
2014-06-27 15:16 ` [PATCHv4 06/10] android/health: Assign channel to user_data Andrei Emeltchenko
2014-06-27 15:16 ` [PATCHv4 07/10] android/health: Create mdep for ECHO channel Andrei Emeltchenko
2014-06-27 15:16 ` [PATCHv4 08/10] android/health: Add handling for ECHO service Andrei Emeltchenko
2014-06-27 15:16 ` [PATCHv4 09/10] android/health: Improve debug Andrei Emeltchenko
2014-06-27 15:16 ` [PATCHv4 10/10] android/pts: Update HDP test results Andrei Emeltchenko
2014-06-29 12:18 ` [PATCHv4 01/10] android/health: Add error check when creating app Szymon Janc

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