NFS: Set key construction data for the legacy upcall
Subsystems (2)
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().
Signed-off-by Bryan Schumaker <[email protected]>
--- fs/nfs/idmap.c | 1 + 1 file changed, 1 insertion(+)
fs/nfs/idmap.c +1 -0
@@ -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