* [PATCH] NFS: Set key construction data for the legacy upcall
@ 2012-10-02 20:01 bjschuma
0 siblings, 0 replies; only message in thread
From: bjschuma @ 2012-10-02 20:01 UTC (permalink / raw)
To: Trond.Myklebust; +Cc: linux-nfs
From: Bryan Schumaker <bjschuma@netapp.com>
This prevents a null pointer dereference when
nfs_idmap_complete_pipe_upcall_locked() calls complete_request_key().
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
---
fs/nfs/idmap.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
index 675b389c..9cc4a3f 100644
--- a/fs/nfs/idmap.c
+++ b/fs/nfs/idmap.c
@@ -707,6 +707,7 @@ static int nfs_idmap_legacy_upcall(struct key_construction *cons,
msg = &data->pipe_msg;
im = &data->idmap_msg;
data->idmap = idmap;
+ data->key_cons = cons;
ret = nfs_idmap_prepare_message(key->description, idmap, im, msg);
if (ret < 0)
--
1.7.12.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-02 20:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-02 20:01 [PATCH] NFS: Set key construction data for the legacy upcall bjschuma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).