diff options
author | jhb <jhb@FreeBSD.org> | 2013-06-11 15:37:07 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2013-06-11 15:37:07 +0000 |
commit | da4379cf0bbd1678479f7f434024b4fb928b3204 (patch) | |
tree | f2d9d2feec8b0595d98a8ec5e682668433e274f8 /contrib/llvm/tools/clang/lib/Serialization/GeneratePCH.cpp | |
parent | 0fc5c36eb63a53746d4373a5feb6ad62b6f38a8c (diff) | |
download | FreeBSD-src-da4379cf0bbd1678479f7f434024b4fb928b3204.zip FreeBSD-src-da4379cf0bbd1678479f7f434024b4fb928b3204.tar.gz |
Store a reference to the vnode associated with a file descriptor in the
linux_file structure and use it instead of directly accessing td_fpop
when destroying the linux_file structure. The td_fpop pointer is not
valid when a cdevpriv destructor is run, and the type-specific close
method has already been called, so f_vnode may not be valid (and the
vnode might have been recycled without our own reference).
Tested by: Julian Stecklina <jsteckli@os.inf.tu-dresden.de>
MFC after: 1 week
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Serialization/GeneratePCH.cpp')
0 files changed, 0 insertions, 0 deletions