
3 Sep
2018
3 Sep
'18
4:46 p.m.
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@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