diff options
author | 2018-07-03 05:50:46 +0000 | |
---|---|---|
committer | 2018-07-03 05:50:46 +0000 | |
commit | 4e13440d1c69a1e95d8fa2679ca8e517b9d739eb (patch) | |
tree | d1e92a10392f3cb247c8ca25b4b2f90b58fb32f8 /sys/lib/libkern | |
parent | Remove dead code present since r1.1. Fix CID 1470238. (diff) | |
download | wireguard-openbsd-4e13440d1c69a1e95d8fa2679ca8e517b9d739eb.tar.xz wireguard-openbsd-4e13440d1c69a1e95d8fa2679ca8e517b9d739eb.zip |
Instead of overwriting `f_data' replace the 'struct file' with a new one.
With this change `f_data' is effectively immutable.
While here prevent a lock ordering issue by not unterleaving the vnode's
lock and the fdplock().
Tested by bluhm@, ok kettenis@, visa@, jsing@
Diffstat (limited to 'sys/lib/libkern')
0 files changed, 0 insertions, 0 deletions