]> git.hungrycats.org Git - linux/commit
[PATCH] kNFSd: Protect reference to exp across calls to nfsd_cross_mnt
authorAndrew Morton <akpm@osdl.org>
Wed, 19 May 2004 09:40:08 +0000 (02:40 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 19 May 2004 09:40:08 +0000 (02:40 -0700)
commit8dfec5a1a50ed2e2f5e4dcbe55ebb17b351ac603
treef965562898f849b696e5bb759950e6af9c7d3a24
parenta1de7361e932e6f56053cbb9c0964a08a57b0af2
[PATCH] kNFSd: Protect reference to exp across calls to nfsd_cross_mnt

From: NeilBrown <neilb@cse.unsw.edu.au>

nfsd_cross_mnt can release the reference to the passed svc_export structure
when it returns a different svc_export structure.  So we need to make sure we
have a counted reference before, and drop the reference afterwards.
fs/nfsd/nfs4xdr.c
fs/nfsd/vfs.c
include/linux/nfsd/export.h