]> git.baikalelectronics.ru Git - kernel.git/commit
tls: Fix tls_device receive
authorBoris Pismenny <borisp@mellanox.com>
Wed, 27 Feb 2019 15:38:06 +0000 (17:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 06:10:16 +0000 (22:10 -0800)
commit6f386fe20f31dd16ba33ee059a305b850015b256
tree75fa2eb08c51a96fe31f037838bb0432f2bea423
parent3d79b69e94b927715b74f8db66e8efd4895d6c9c
tls: Fix tls_device receive

Currently, the receive function fails to handle records already
decrypted by the device due to the commit mentioned below.

This commit advances the TLS record sequence number and prepares the context
to handle the next record.

Fixes: 6d59fae68726 ("net: tls: Refactor control message handling on recv")
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c