aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/idmap.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
index f9f89fc83ee0..a701a83047d3 100644
--- a/fs/nfs/idmap.c
+++ b/fs/nfs/idmap.c
@@ -656,14 +656,19 @@ static int nfs_idmap_legacy_upcall(struct key_construction *cons,
656 656
657 idmap->idmap_key_cons = cons; 657 idmap->idmap_key_cons = cons;
658 658
659 return rpc_queue_upcall(idmap->idmap_pipe, msg); 659 ret = rpc_queue_upcall(idmap->idmap_pipe, msg);
660 if (ret < 0)
661 goto out2;
662
663 return ret;
660 664
661out2: 665out2:
662 kfree(im); 666 kfree(im);
663out1: 667out1:
664 kfree(msg); 668 kfree(msg);
665out0: 669out0:
666 complete_request_key(cons, ret); 670 key_revoke(cons->key);
671 key_revoke(cons->authkey);
667 return ret; 672 return ret;
668} 673}
669 674