mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-28 06:33:36 +02:00

Even if imaevm_get_hash_algo() returns an error value of -1, it is forced to be converted to uint8_t type here, resulting in this error not being checked by the if condition. This patch fixes this error. Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>