summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9675a20)
raw | patch | inline | side by side (parent: 9675a20)
author | Angela Stegmaier <angelabaker@ti.com> | |
Thu, 9 Jul 2020 19:35:28 +0000 (14:35 -0500) | ||
committer | Sivaraj R <sivaraj@ti.com> | |
Fri, 10 Jul 2020 02:50:14 +0000 (21:50 -0500) |
Fix the static analysis reported issue in mailbox for TPR12.
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
packages/ti/drv/mailbox/soc/tpr12/mailbox_soc.c | patch | blob | history |
diff --git a/packages/ti/drv/mailbox/soc/tpr12/mailbox_soc.c b/packages/ti/drv/mailbox/soc/tpr12/mailbox_soc.c
index 3f50510912278ce0a64d74d6d6aadbb0ab5c576d..b58b8d185777c9d587da5ad802312a5f2cf2d8ae 100644 (file)
if((size == 0) || (size > MAILBOX_DATA_BUFFER_SIZE) || (buffer == NULL) || (handle == NULL) || (driver->hwCfg == NULL))
{
/* Error: Invalid Arguments */
- DebugP_log4 ("MAILBOX: Mailbox_write Error! Invalid param. Size=%d Buffer=(%p) handle=(%p) hwCfgPtr=(%p)\n", size, (uintptr_t)buffer, (uintptr_t)handle, (uintptr_t)driver->hwCfg);
+ DebugP_log4 ("MAILBOX: Mailbox_write Error! Invalid param. Size=%d Buffer=(%p) handle=(%p) hwCfgPtr=(%p)\n",
+ size, (uintptr_t)buffer, (uintptr_t)handle, ((handle) ? (uintptr_t)driver->hwCfg : NULL));
retVal = MAILBOX_EINVAL;
goto exit;
}