knfsd: avoid use of unitialised variables on error path when nfs exports
authorNeilBrown <neilb@suse.de>
Wed, 9 May 2007 09:34:52 +0000 (02:34 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:54 +0000 (12:30 -0700)
commit402acd29e552cb80109d1d5c0ada53f634465d87
tree12c86f3421d3d8679401742e1bc6569c75908ee3
parent5bd5f5812bfa753218e02cb773e06ede48055798
knfsd: avoid use of unitialised variables on error path when nfs exports

We need to zero various parts of 'exp' before any 'goto out', otherwise when
we go to free the contents...  we die.

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfsd/export.c