]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net/handshake: handshake_genl_notify() shouldn't ignore @flags
authorChuck Lever <chuck.lever@oracle.com>
Thu, 11 May 2023 15:48:45 +0000 (11:48 -0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 May 2023 05:05:24 +0000 (22:05 -0700)
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Fixes: 3b3009ea8abb ("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>
net/handshake/netlink.c

index 16a4bde648bacf497649b62906e44ebd348c464f..1086653e1fada1724f98ccbc81fbcf7741ef9bc9 100644 (file)
@@ -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;