Blame SOURCES/0001-Return-proper-error-code-on-memory-allocation-failur.patch

b9d646
From 93aab9433b5d66a916e28016a4b60c4a1c39acfc Mon Sep 17 00:00:00 2001
b9d646
From: Pieter Agten <pieter.agten@gmail.com>
b9d646
Date: Tue, 3 Dec 2019 20:52:29 +0100
b9d646
Subject: [PATCH] Return proper error code on memory allocation failure
b9d646
b9d646
Signed-off-by: Pieter Agten <pieter.agten@gmail.com>
b9d646
---
b9d646
 src/tss2-tcti/tctildr.c | 1 +
b9d646
 1 file changed, 1 insertion(+)
b9d646
b9d646
diff --git a/src/tss2-tcti/tctildr.c b/src/tss2-tcti/tctildr.c
b9d646
index ff967317b57b..1528f6e52fd0 100644
b9d646
--- a/src/tss2-tcti/tctildr.c
b9d646
+++ b/src/tss2-tcti/tctildr.c
b9d646
@@ -421,6 +421,7 @@ Tss2_TctiLdr_Initialize_Ex (const char *name,
b9d646
     }
b9d646
     ldr_ctx = calloc (1, sizeof (TSS2_TCTILDR_CONTEXT));
b9d646
     if (ldr_ctx == NULL) {
b9d646
+        rc = TSS2_TCTI_RC_MEMORY;
b9d646
         goto err;
b9d646
     }
b9d646
     TSS2_TCTI_MAGIC (ldr_ctx) = TCTILDR_MAGIC;
b9d646
-- 
b9d646
2.27.0
b9d646