Diff between 32b52153ec83f9c7d360a1e590e55abfa8ced57d and fb36e4983c533eb972eb9a673f6d4d803e07f05a

Changed Files

File Additions Deletions Status
profiles/health/hdp.c +4 -1 modified

Full Patch

diff --git a/profiles/health/hdp.c b/profiles/health/hdp.c
index 23ab59a..d64edb8 100644
--- a/profiles/health/hdp.c
+++ b/profiles/health/hdp.c
@@ -747,8 +747,11 @@ static struct hdp_channel *create_channel(struct hdp_device *dev,
 {
 	struct hdp_channel *hdp_chann;
 
-	if (dev == NULL)
+	if (dev == NULL) {
+		g_set_error(err, HDP_ERROR, HDP_UNSPECIFIED_ERROR,
+					"HDP device uninitialized");
 		return NULL;
+	}
 
 	hdp_chann = g_new0(struct hdp_channel, 1);
 	hdp_chann->config = config;