45 lines
1.6 KiB
Diff
45 lines
1.6 KiB
Diff
From d9540ad27d5b53ff1ea9f728c47e4acf1480ec49 Mon Sep 17 00:00:00 2001
|
|
From: Vladis Dronov <vdronov@redhat.com>
|
|
Date: Tue, 22 Mar 2022 16:56:29 +0100
|
|
Subject: [PATCH] Fix hash_file_sample return code
|
|
|
|
So it does not return zero exit status unconditionally.
|
|
|
|
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
|
|
---
|
|
.../sym/hash_file_sample/cpa_hash_file_sample_user.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/quickassist/lookaside/access_layer/src/sample_code/functional/sym/hash_file_sample/cpa_hash_file_sample_user.c b/quickassist/lookaside/access_layer/src/sample_code/functional/sym/hash_file_sample/cpa_hash_file_sample_user.c
|
|
index c9a8c5e..758d7bd 100644
|
|
--- a/quickassist/lookaside/access_layer/src/sample_code/functional/sym/hash_file_sample/cpa_hash_file_sample_user.c
|
|
+++ b/quickassist/lookaside/access_layer/src/sample_code/functional/sym/hash_file_sample/cpa_hash_file_sample_user.c
|
|
@@ -92,7 +92,7 @@ int main(int argc, const char **argv)
|
|
if (CPA_STATUS_SUCCESS != stat)
|
|
{
|
|
PRINT_ERR("Failed to initialize memory driver\n");
|
|
- return 0;
|
|
+ return (int)stat;
|
|
}
|
|
|
|
stat = icp_sal_userStartMultiProcess("SSL", CPA_FALSE);
|
|
@@ -100,7 +100,7 @@ int main(int argc, const char **argv)
|
|
{
|
|
PRINT_ERR("Failed to start user process SSL\n");
|
|
qaeMemDestroy();
|
|
- return 0;
|
|
+ return (int)stat;
|
|
}
|
|
gFileName = fileToHash;
|
|
|
|
@@ -118,5 +118,5 @@ int main(int argc, const char **argv)
|
|
qaeMemDestroy();
|
|
gFileName = NULL;
|
|
|
|
- return 0;
|
|
+ return (int)stat;
|
|
}
|
|
--
|
|
2.35.1
|
|
|