From 8c7d471c3863b4f599cf44f3ca447bf1c8b4e564 Mon Sep 17 00:00:00 2001 From: Manisha Chinthapally Date: Mon, 29 Oct 2018 21:43:04 -0700 Subject: [PATCH] HV: bug fix:possible access to NULL pointer Return from the function if the NULL pointer is encountered. Tracked-On : #1409 Signed-off-by: Manisha Chinthapally --- hypervisor/debug/profiling.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hypervisor/debug/profiling.c b/hypervisor/debug/profiling.c index 017863158..bdab57820 100644 --- a/hypervisor/debug/profiling.c +++ b/hypervisor/debug/profiling.c @@ -475,6 +475,7 @@ static void profiling_handle_msrops(void) (my_msr_node->msr_op_state != (int32_t)MSR_OP_REQUESTED)) { dev_dbg(ACRN_DBG_PROFILING, "%s: invalid my_msr_node on cpu%d", __func__, get_cpu_id()); + return; } if ((my_msr_node->num_entries == 0U) ||