Skip to contentSkip to conversation

NFS: Set key construction data for the legacy upcall

PATCH New [email protected] 1 participant 1 message Oct 2, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFS: Set key construction data for the legacy upcall

From: Bryan Schumaker <[email protected]>

This prevents a null pointer dereference when nfs_idmap_complete_pipe_upcall_locked() calls complete_request_key().

---
 fs/nfs/idmap.c | 1 +
 1 file changed, 1 insertion(+)
fs/nfs/idmap.c +1 -0
index 675b389c..9cc4a3f 100644
@@ -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)
Signature · 1 line
1.7.12.2