Fix klocwork issues

BZ: 77254

Check the return value of calloc. Fix NULL pointer dereference risk.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>

Change-Id: Ie877bf092e366f59ffa05f39f0d51d5c5d0c2199
Reviewed-on: http://android.intel.com:8080/83994
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
2 files changed