aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter2013-02-28 13:27:43 -0600
committerDavid S. Miller2013-03-01 14:59:56 -0600
commit81ce0dbc119fa31af21d02febde1cf923022d4d6 (patch)
treed30a6bbde6b47679115f5eb1f84f79eabbc5c58f
parentd8c6f4b9b7848bca8babfc0ae43a50c8ab22fbb9 (diff)
downloadam43-linux-kernel-81ce0dbc119fa31af21d02febde1cf923022d4d6.tar.gz
am43-linux-kernel-81ce0dbc119fa31af21d02febde1cf923022d4d6.tar.xz
am43-linux-kernel-81ce0dbc119fa31af21d02febde1cf923022d4d6.zip
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 <dan.carpenter@oracle.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sctp/endpointola.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c
index 73aad3d16a4..9a680c07514 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,
155 155
156 /* SCTP-AUTH extensions*/ 156 /* SCTP-AUTH extensions*/
157 INIT_LIST_HEAD(&ep->endpoint_shared_keys); 157 INIT_LIST_HEAD(&ep->endpoint_shared_keys);
158 null_key = sctp_auth_shkey_create(0, GFP_KERNEL); 158 null_key = sctp_auth_shkey_create(0, gfp);
159 if (!null_key) 159 if (!null_key)
160 goto nomem; 160 goto nomem;
161 161