summaryrefslogtreecommitdiffstats
path: root/contrib/ngatm
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-08-11 12:04:35 +0000
committerpjd <pjd@FreeBSD.org>2004-08-11 12:04:35 +0000
commit8623e8af4ddee49da855613b1c3a6f95bfb25716 (patch)
treef8eafe76e848670e3174ee307f5e49efff7b20bb /contrib/ngatm
parenta93503bce5774a1d50bc8d2659fa612fd093c64a (diff)
downloadFreeBSD-src-8623e8af4ddee49da855613b1c3a6f95bfb25716.zip
FreeBSD-src-8623e8af4ddee49da855613b1c3a6f95bfb25716.tar.gz
When sending request once again because of ENOMEM, reset bio_children
and bio_inbed fields to 0. Without this change we can end up with I/O leakage in some rare situations. I tested this change by putting failure probability mechanism simlar to this used in NOP class into g_clone_bio(9) function, so it was able to return NULL with the given probability. Discussed with: phk
Diffstat (limited to 'contrib/ngatm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud