[U-Boot] [PATCH v3 04/20] avb_verify: bugfix avb_ops_free() skipping free
Jens Wiklander
jens.wiklander at linaro.org
Mon Sep 3 14:46:55 UTC 2018
Before this patch avb_ops_free() was returning early if supplied "ops"
argument was not NULL. This patch fixes this by inverting the condition.
Signed-off-by: Jens Wiklander <jens.wiklander at linaro.org>
---
common/avb_verify.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/avb_verify.c b/common/avb_verify.c
index 20e35ade3029..3a1282a09204 100644
--- a/common/avb_verify.c
+++ b/common/avb_verify.c
@@ -732,7 +732,7 @@ void avb_ops_free(AvbOps *ops)
{
struct AvbOpsData *ops_data;
- if (ops)
+ if (!ops)
return;
ops_data = ops->user_data;
--
2.17.1
More information about the U-Boot
mailing list