diff options
author | 2014-09-29 00:07:55 +0000 | |
---|---|---|
committer | 2014-09-29 00:07:55 +0000 | |
commit | 8bc857bd7bc9bcad1c1e2f1e471da9e5ce59706c (patch) | |
tree | 56fef15fda07f6aea4d67dd432ac9d1a2e28767d /lib/libssl/src | |
parent | Properly serialize closing our vnode. Fixes the occasional panic during (diff) | |
download | wireguard-openbsd-8bc857bd7bc9bcad1c1e2f1e471da9e5ce59706c.tar.xz wireguard-openbsd-8bc857bd7bc9bcad1c1e2f1e471da9e5ce59706c.zip |
correctly decrement the C_SCSIXFER reference count in wdc_xfer flags
if the ata stack xfer free path is called before teh scsi xfer free
path. this fixes a leak.
in the vast majority of uses (eg, filesystems mounted on cd(4) via
atapiscsi(4)) the scsi xfer free is always done first. however, if
you're doing ioctls (eg, cdio(1)), the scsi ref is held over to the
ioctl completion path, so the ata xfer free happens first.
problem found by patrick keshishian who did some excellent work
debugging this and providing the right fix for it.
ok jmatthew@
Diffstat (limited to 'lib/libssl/src')
0 files changed, 0 insertions, 0 deletions