Skip to content

Commit fc49088

Browse files
chuckleverkuba-moo
authored andcommitted
net/handshake: handshake_genl_notify() shouldn't ignore @flags
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: Jakub Kicinski <kuba@kernel.org>
1 parent 7afc6d0 commit fc49088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/handshake/netlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ int handshake_genl_notify(struct net *net, const struct handshake_proto *proto,
4848
proto->hp_handler_class))
4949
return -ESRCH;
5050

51-
msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, GFP_KERNEL);
51+
msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, flags);
5252
if (!msg)
5353
return -ENOMEM;
5454

0 commit comments

Comments
 (0)