author | Buddy Liong <a0270631@ti.com> | |
Thu, 30 Jun 2016 16:11:22 +0000 (11:11 -0500) | ||
committer | Buddy Liong <a0270631@ti.com> | |
Tue, 5 Jul 2016 20:59:00 +0000 (15:59 -0500) | ||
commit | 820edc50bf3f1e395a4a2f33493906fea8c01484 | |
tree | d40870a5d90e8c1ca0d2db5be73aff80a275cbc3 | tree | snapshot (tar.xz tar.gz zip) |
parent | c17cb8bdc5a5fb08af2375fbb839862b142ae1b9 | commit | diff |
dce_register_engine shouldn't be called when Engine_open returns NULL
Prior to this patch, when Engine_open fails and return NULL Engine_Handle.
DCE will still caling dce_register_engine with NULL data which is not
necessary. The only issue here is that the c->refs count will be invalid.
This patch check on Engine_Handle to make sure it is not NULL before
calling dce_register_engine
Change-Id: I07680326ef991dbf32d9c7ceb2a1877bbd368f29
Signed-off-by: Buddy Liong <a0270631@ti.com>
Prior to this patch, when Engine_open fails and return NULL Engine_Handle.
DCE will still caling dce_register_engine with NULL data which is not
necessary. The only issue here is that the c->refs count will be invalid.
This patch check on Engine_Handle to make sure it is not NULL before
calling dce_register_engine
Change-Id: I07680326ef991dbf32d9c7ceb2a1877bbd368f29
Signed-off-by: Buddy Liong <a0270631@ti.com>
src/ti/framework/dce/dce.c | diff | blob | history |