diff mbox

md5sum (from libkcapi) fails on kernel 4.9 but not on 4.13

Message ID 3299215.QY4dUA6yAn@tauon.chronox.de (mailing list archive)
State Not Applicable
Delegated to: Herbert Xu
Headers show

Commit Message

Stephan Mueller Oct. 17, 2017, 1:42 p.m. UTC
Am Dienstag, 17. Oktober 2017, 10:51:06 CEST schrieb Christophe LEROY:

Hi Christophe,

> 
> I've now tried a test with 1.0.0, and there seems to be another big
> issue: the error returned by sendmsg() is not taken into account anymore:

It seems that this bug was there before. Can you please check whether this one 
fixes it?

                        ret = vmsplice(handle->pipes[1], &iov, 1,
                                       SPLICE_F_GIFT|flags);

Thanks

Ciao
Stephan
diff mbox

Patch

diff --git a/lib/kcapi-kernel-if.c b/lib/kcapi-kernel-if.c
index e00d328..9053104 100644
--- a/lib/kcapi-kernel-if.c
+++ b/lib/kcapi-kernel-if.c
@@ -321,6 +321,8 @@  int32_t _kcapi_common_vmsplice_chunk_fd(struct 
kcapi_handle *handle, int *fdptr,
 
                if ((handle->processed_sg++) > handle->flags.alg_max_pages) {
                        ret = _kcapi_common_send_data(handle, &iov, 1, 
sflags);
+                       if (ret < 0)
+                               return ret;
                } else {