author | Buddy Liong <a0270631@ti.com> | |
Thu, 30 Jun 2016 16:11:22 +0000 (11:11 -0500) | ||
committer | Buddy Liong <a0270631@ti.com> | |
Mon, 2 Oct 2017 15:25:22 +0000 (10:25 -0500) | ||
commit | d12109117563522f8abba036ea42a0710d87db3d | |
tree | 35fec97346f3ac706801e8baae1ff84f1d09ca11 | tree | snapshot (tar.xz tar.gz zip) |
parent | b03d93d8f1a18bd7ec52aed9d5a7915419453bd4 | 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 |