sctp: use the passed in gfp flags instead GFP_KERNEL
Subsystems (4)
PATCH 1/1 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 <[email protected]>
net/sctp/endpointola.c +1 -1
@@ -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;
Quoted 12 lines · Dan Carpenter
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 ofGFP_KERNEL.Signed-off-by Dan Carpenter <[email protected]>net/sctp/endpointola.c +0
-0
net/sctp/endpointola.c static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep, · line 161
Quoted 8 lines
net/sctp/endpointola.c +1
-1@@ -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;
Acked-by Neil Horman <[email protected]>
From: Dan Carpenter <[email protected]>
Date: Fri, 1 Mar 2013 08:27:43 +0300
Quoted 5 lines
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 ofGFP_KERNEL.Signed-off-by Dan Carpenter <[email protected]>
Applied, thanks.