summaryrefslogtreecommitdiffstats
path: root/drivers/base/dma-contiguous.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-07-03 07:27:26 +0200
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-07-13 22:00:09 +0200
commit26fde4dfcbdcbbac394bb35de0c0f842de6972b5 (patch)
tree8e744314f14044538f8d65edc0c7bcd2a9750c3d /drivers/base/dma-contiguous.c
parentNFS: guard against confused server in nfs_atomic_open() (diff)
downloadlinux-26fde4dfcbdcbbac394bb35de0c0f842de6972b5.tar.xz
linux-26fde4dfcbdcbbac394bb35de0c0f842de6972b5.zip
NFS: check for nfs_refresh_inode() errors in nfs_fhget()
If an NFS server returns a filehandle that we have previously seen, and reports a different type, then nfs_refresh_inode() will log a warning and return an error. nfs_fhget() does not check for this error and may return an inode with a different type than the one that the server reported. This is likely to cause confusion, and is one way that ->open_context() could return a directory inode as discussed in the previous patch. So if nfs_refresh_inode() returns and error, return that error from nfs_fhget() to avoid the confusion propagating. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'drivers/base/dma-contiguous.c')
0 files changed, 0 insertions, 0 deletions