diff options
author | Santiago Carot-Nemesio <sancane@gmail.com> | 2010-11-16 10:09:30 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-11-18 16:56:27 +0200 |
commit | 59d99d49674d950d3d44c39b7b596d193c29fbde (patch) | |
tree | a4ef49220fbec1ee0d52d327468dabf082314131 /health | |
parent | 1242e834f339d35a4f94ddfac2db4e6ebcd92ba3 (diff) | |
download | bluez-59d99d49674d950d3d44c39b7b596d193c29fbde.tar.gz |
Return proper response code if there is an error creating echo channel
Diffstat (limited to 'health')
-rw-r--r-- | health/hdp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/health/hdp.c b/health/hdp.c index 01c7ca0b..3a633d9f 100644 --- a/health/hdp.c +++ b/health/hdp.c @@ -1067,6 +1067,9 @@ static uint8_t hdp_mcap_mdl_conn_req_cb(struct mcap_mcl *mcl, uint8_t mdepid, } dev->ndc = create_channel(dev, *conf, NULL, mdlid, NULL, NULL); + if (!dev->ndc) + return MCAP_MDL_BUSY; + return MCAP_SUCCESS; } |