]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: fix NULL dereference in nfsd_statfs()
authorTakashi Iwai <tiwai@suse.de>
Fri, 13 Aug 2010 13:53:49 +0000 (15:53 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 26 Aug 2010 17:23:16 +0000 (13:23 -0400)
commit45b9b83d92e3363f74c45a2dab928e37e2cf64df
treee57015159bf6f361d45050f28a8da7beaceaea60
parentc7b7df7e378a51ca77ed6f7ffd527353e8cfbdef
nfsd: fix NULL dereference in nfsd_statfs()

The commit 1ebfcb1e7a3d49b46f82977a716d5fce753d9c0e
    pass a struct path to vfs_statfs
introduced the struct path initialization, and this seems to trigger
an Oops on my machine.

fh_dentry field may be NULL and set later in fh_verify(), thus the
initialization of path must be after fh_verify().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/vfs.c