chelsio/chtls: unlock on error in chtls_pt_recvmsg()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 May 2021 10:02:48 +0000 (13:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 May 2021 21:30:00 +0000 (14:30 -0700)
commit832ce924b1a14e139e184a6da9f5a69a5e47b256
tree18104eb341fbf3aadabae25554797b9147bd259b
parent4a64541f2cebef54ea8d9f53ac5067328b8e02d8
chelsio/chtls: unlock on error in chtls_pt_recvmsg()

This error path needs to release some memory and call release_sock(sk);
before returning.

Fixes: 6919a8264a32 ("Crypto/chtls: add/delete TLS header in driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c