Fixing oops in callback path
[deliverable/linux.git] / fs / nfs / callback_proc.c
index 618ced381a1405ff7c31f704409781c7ef1e00f6..7c9fbf504f076a3df2990564ee22465a27e95bf2 100644 (file)
@@ -500,8 +500,10 @@ __be32 nfs4_callback_sequence(struct cb_sequenceargs *args,
        cps->slot = slot;
 
        /* The ca_maxresponsesize_cached is 0 with no DRC */
-       if (args->csa_cachethis != 0)
-               return htonl(NFS4ERR_REP_TOO_BIG_TO_CACHE);
+       if (args->csa_cachethis != 0) {
+               status = htonl(NFS4ERR_REP_TOO_BIG_TO_CACHE);
+               goto out_unlock;
+       }
 
        /*
         * Check for pending referring calls.  If a match is found, a
This page took 0.042452 seconds and 5 git commands to generate.