Commit 858754a5 authored by Cyan Yang's avatar Cyan Yang Committed by Anup Patel
Browse files

lib: utils/irqchip: Add sanity checks in imsic_get_data() and imsic_get_target_file()



Add extra sanity checks to prevent the caller getting the invalid result from
imsic_get_data() or imsic_get_target_file() when imsic is not initialized
correctly.

Signed-off-by: default avatarCyan Yang <cyan.yang@sifive.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 96f0a2e3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment