]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/sunrpc/auth_gss/gss_mech_switch.c
NFS: Don't use GFP_KERNEL in rpcsec_gss downcalls
[mv-sheeva.git] / net / sunrpc / auth_gss / gss_mech_switch.c
index 28a84ef41d13b520f668c67b94818a47a26d9492..2689de39dc78c06d78a16d4c12fdfe28a633ef99 100644 (file)
@@ -249,14 +249,15 @@ EXPORT_SYMBOL_GPL(gss_mech_put);
 int
 gss_import_sec_context(const void *input_token, size_t bufsize,
                       struct gss_api_mech      *mech,
-                      struct gss_ctx           **ctx_id)
+                      struct gss_ctx           **ctx_id,
+                      gfp_t gfp_mask)
 {
-       if (!(*ctx_id = kzalloc(sizeof(**ctx_id), GFP_KERNEL)))
+       if (!(*ctx_id = kzalloc(sizeof(**ctx_id), gfp_mask)))
                return -ENOMEM;
        (*ctx_id)->mech_type = gss_mech_get(mech);
 
        return mech->gm_ops
-               ->gss_import_sec_context(input_token, bufsize, *ctx_id);
+               ->gss_import_sec_context(input_token, bufsize, *ctx_id, gfp_mask);
 }
 
 /* gss_get_mic: compute a mic over message and return mic_token. */