]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8bc3a2b379ea06c15581bf6f468d6495a19d75ee
tree12c86f3421d3d8679401742e1bc6569c75908ee3
parente6a625352e39bf690e80a8a1ecdb5678f42fe4bb
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