diff options
-rw-r--r-- | src/soc/intel/common/block/pcr/pcr.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/soc/intel/common/block/pcr/pcr.c b/src/soc/intel/common/block/pcr/pcr.c index b8d798ffe2..58eb13affa 100644 --- a/src/soc/intel/common/block/pcr/pcr.c +++ b/src/soc/intel/common/block/pcr/pcr.c @@ -263,7 +263,12 @@ int pcr_execute_sideband_msg(struct pcr_sbi_msg *msg, uint32_t *data, uint16_t sbi_status; uint16_t sbi_rid; - assert(msg && data && response); + if (!msg || !data || !response) { + printk(BIOS_ERR, "Pointer checked for NULL Fail! " + "msg = %p \t data = %p \t response = %p\n", + msg, data, response); + return -1; + } switch (msg->opcode) { case MEM_READ: @@ -275,7 +280,8 @@ int pcr_execute_sideband_msg(struct pcr_sbi_msg *msg, uint32_t *data, case GPIO_LOCK_UNLOCK: break; default: - printk(BIOS_ERR, "SBI Failure: Wrong Input!\n"); + printk(BIOS_ERR, "SBI Failure: Wrong Input = %x!\n", + msg->opcode); return -1; break; } |