[PATCH] fixed stack corruption in get_deviceinfo

Tigran Mkrtchyan tigran at nairi.desy.de
Tue Aug 28 04:39:10 EDT 2007


---
 fs/nfs/nfs4proc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 671ff4d..54a86bb 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -2427,7 +2427,7 @@ static int _nfs4_pnfs_getdeviceinfo(stru
 	struct rpc_message msg = {
 		.rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_PNFS_GETDEVICEINFO],
 		.rpc_argp = &args,
-		.rpc_resp = &dev,
+		.rpc_resp = &res,
 	};
 
 	int status = -ENOMEM;
-- 
1.4.3.4


--------------090004080408020609030103
Content-Type: text/plain;
 name="0003-fixed-memory-leak-in-case-of-errors-in-decode_device.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename*0="0003-fixed-memory-leak-in-case-of-errors-in-decode_device.tx";
 filename*1="t"



More information about the pNFS mailing list