From: Dan Carpenter Date: Thu, 28 Feb 2013 19:27:43 +0000 (+0000) Subject: sctp: use the passed in gfp flags instead GFP_KERNEL X-Git-Tag: v3.9-rc2~24^2~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=81ce0dbc119fa31af21d02febde1cf923022d4d6;p=karo-tx-linux.git sctp: use the passed in gfp flags instead GFP_KERNEL This patch doesn't change how the code works because in the current kernel gfp is always GFP_KERNEL. But gfp was obviously intended instead of GFP_KERNEL. Signed-off-by: Dan Carpenter Acked-by: Neil Horman Signed-off-by: David S. Miller --- diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index 73aad3d16a45..9a680c075141 100644 --- a/net/sctp/endpointola.c +++ b/net/sctp/endpointola.c @@ -155,7 +155,7 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep, /* SCTP-AUTH extensions*/ INIT_LIST_HEAD(&ep->endpoint_shared_keys); - null_key = sctp_auth_shkey_create(0, GFP_KERNEL); + null_key = sctp_auth_shkey_create(0, gfp); if (!null_key) goto nomem;