sctp: use the passed in gfp flags instead GFP_KERNEL
[linux-drm-fsl-dcu.git] / net / sctp / endpointola.c
index 73aad3d16a4566e2ae58a64521ac2456938bc585..9a680c0751410ac2f91a02cd32d2113b764028f4 100644 (file)
@@ -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;