Fixing oops in callback path
[cascardo/linux.git] / fs / nfs / callback_proc.c
index 618ced3..7c9fbf5 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