tls: rename MAX_IV_SIZE to TLS_MAX_IV_SIZE
[linux-block.git] / net / tls / tls_main.c
index 02f583ff9239539bc70528820fc8480dd8d1fb5f..58f13660fe6b39f953c5686a56ba3a097f0a20e9 100644 (file)
@@ -59,7 +59,7 @@ enum {
 };
 
 #define CHECK_CIPHER_DESC(cipher,ci)                           \
-       static_assert(cipher ## _IV_SIZE <= MAX_IV_SIZE);               \
+       static_assert(cipher ## _IV_SIZE <= TLS_MAX_IV_SIZE);           \
        static_assert(cipher ## _REC_SEQ_SIZE <= TLS_MAX_REC_SEQ_SIZE); \
        static_assert(cipher ## _TAG_SIZE == TLS_TAG_SIZE);             \
        static_assert(sizeof_field(struct ci, iv) == cipher ## _IV_SIZE);       \
@@ -344,7 +344,6 @@ static void tls_sk_proto_cleanup(struct sock *sk,
 
        /* We need these for tls_sw_fallback handling of other packets */
        if (ctx->tx_conf == TLS_SW) {
-               kfree(ctx->tx.rec_seq);
                kfree(ctx->tx.iv);
                tls_sw_release_resources_tx(sk);
                TLS_DEC_STATS(sock_net(sk), LINUX_MIB_TLSCURRTXSW);