Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/handshake: handshake_genl_notify() shouldn't ignore @flags

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>

authored by

Chuck Lever and committed by
Jakub Kicinski
fc490880 7afc6d0a

+1 -1
+1 -1
net/handshake/netlink.c
··· 48 48 proto->hp_handler_class)) 49 49 return -ESRCH; 50 50 51 - msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, GFP_KERNEL); 51 + msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, flags); 52 52 if (!msg) 53 53 return -ENOMEM; 54 54