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

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

Fix up commit cec8983e which was commit
6de62f15 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
...@@ -283,8 +283,8 @@ static int hash_check_key(struct socket *sock) ...@@ -283,8 +283,8 @@ static int hash_check_key(struct socket *sock)
return err; return err;
} }
static int hash_sendmsg_nokey(struct socket *sock, struct msghdr *msg, static int hash_sendmsg_nokey(struct kiocb *unused, struct socket *sock,
size_t size) struct msghdr *msg, size_t size)
{ {
int err; int err;
...@@ -307,8 +307,8 @@ static ssize_t hash_sendpage_nokey(struct socket *sock, struct page *page, ...@@ -307,8 +307,8 @@ static ssize_t hash_sendpage_nokey(struct socket *sock, struct page *page,
return hash_sendpage(sock, page, offset, size, flags); return hash_sendpage(sock, page, offset, size, flags);
} }
static int hash_recvmsg_nokey(struct socket *sock, struct msghdr *msg, static int hash_recvmsg_nokey(struct kiocb *unused, struct socket *sock,
size_t ignored, int flags) struct msghdr *msg, size_t ignored, int flags)
{ {
int err; int err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment