Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3a65e4a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Fix "crypto: algif_hash - Require setkey before accept(2)"



Fix up commit cec8983e which was commit
6de62f15b581f920ade22d758f4c338311c2f0d4 upstream.

The function prototypes were wrong.  Someone was ignoring compiler
warnings :(

Cc: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f7e5f460
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -283,8 +283,8 @@ unlock_child:
	return err;
}

static int hash_sendmsg_nokey(struct socket *sock, struct msghdr *msg,
			      size_t size)
static int hash_sendmsg_nokey(struct kiocb *unused, struct socket *sock,
			      struct msghdr *msg, size_t size)
{
	int err;

@@ -307,8 +307,8 @@ static ssize_t hash_sendpage_nokey(struct socket *sock, struct page *page,
	return hash_sendpage(sock, page, offset, size, flags);
}

static int hash_recvmsg_nokey(struct socket *sock, struct msghdr *msg,
			      size_t ignored, int flags)
static int hash_recvmsg_nokey(struct kiocb *unused, struct socket *sock,
			      struct msghdr *msg, size_t ignored, int flags)
{
	int err;