Revert "tipc: Fix potential tipc_aead refcnt leak in tipc_crypto_rcv"
authorTuong Lien <tuong.t.lien@dektech.com.au>
Tue, 2 Jun 2020 04:46:41 +0000 (11:46 +0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jun 2020 22:13:47 +0000 (15:13 -0700)
This reverts commit 441870ee4240cf67b5d3ab8e16216a9ff42eb5d6.

Like the previous patch in this series, we revert the above commit that
causes similar issues with the 'aead' object.

Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Tuong Lien <tuong.t.lien@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/crypto.c

index 8c47ded2edb6143d3a79782e5f8404546a726ac4..c8c47fc7265361229c9e19f7e46eeb840089d93d 100644 (file)
@@ -1712,7 +1712,6 @@ exit:
        case -EBUSY:
                this_cpu_inc(stats->stat[STAT_ASYNC]);
                *skb = NULL;
-               tipc_aead_put(aead);
                return rc;
        default:
                this_cpu_inc(stats->stat[STAT_NOK]);