video: tegra: tsec: Coverity fix

Fix Coverity issue CID 10164610
Initialize values to NULL to avoid uninitialized pointer error.

Bug 3461002

Change-Id: Ia1205b09f418c3aa3b9b4e457b944cb71d8c927a
Signed-off-by: Sahil Mukund Patki <spatki@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2836048
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Sahil Mukund Patki
2023-01-02 11:03:46 +00:00
committed by Laxman Dewangan
parent f76b77ab85
commit e15295fcea

View File

@@ -264,8 +264,8 @@ void tsec_comms_drain_msg(bool invoke_cb)
struct RM_GSP_INIT_MSG_GSP_INIT *init_msg_body;
struct RM_FLCN_QUEUE_HDR *cached_init_msg_hdr;
struct RM_GSP_INIT_MSG_GSP_INIT *cached_init_msg_body;
callback_func_t cb_func;
void *cb_ctx;
callback_func_t cb_func = NULL;
void *cb_ctx = NULL;
u8 tsec_msg[TSEC_MAX_MSG_SIZE];
msgq_head_reg = tsec_msgq_head_r(TSEC_MSG_QUEUE_PORT);