Skip to content

Commit 81ce0db

Browse files
Dan Carpenterdavem330
authored andcommitted
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]> Acked-by: Neil Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d8c6f4b commit 81ce0db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sctp/endpointola.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep,
155155

156156
/* SCTP-AUTH extensions*/
157157
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);
159159
if (!null_key)
160160
goto nomem;
161161

0 commit comments

Comments
 (0)