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

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