Skip to content

Commit

Permalink
net/handshake: handshake_genl_notify() shouldn't ignore @flags
Browse files Browse the repository at this point in the history
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Fixes: 3b3009e ("net/handshake: Create a NETLINK service for handling handshake requests")
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Chuck Lever authored and David S. Miller committed May 12, 2023
1 parent 7301034 commit e36a93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/handshake/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int handshake_genl_notify(struct net *net, const struct handshake_proto *proto,
proto->hp_handler_class))
return -ESRCH;

msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, GFP_KERNEL);
msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, flags);
if (!msg)
return -ENOMEM;

Expand Down

0 comments on commit e36a93e

Please sign in to comment.