diff options
author | marius <marius@FreeBSD.org> | 2009-01-07 21:25:44 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2009-01-07 21:25:44 +0000 |
commit | 325428c5284e98d68582a2629bcfbbbde1a274ae (patch) | |
tree | 5f438ca530f7116355200da08ff6ca3468c15a38 /lib/libc/regex/regex2.h | |
parent | f885f01ae19df45aece1f108bd6c756e6b12b4f4 (diff) | |
download | FreeBSD-src-325428c5284e98d68582a2629bcfbbbde1a274ae.zip FreeBSD-src-325428c5284e98d68582a2629bcfbbbde1a274ae.tar.gz |
Check the return values of contigmalloc(9) as well as bus_dma(9)
functions and stop attaching of dcons(4) and dcons_crom(4) if
they indicate failure. This fixes a panic seen on sparc64 machines
with no free physical memory in the requested 32-bit region but
still doesn't make dcons(4)/dcons_crom(4) these work. I think
the latter can be fixed by simply specifying ~0UL as the upper
limit for contigmalloc(9) and letting the bounce pages and the
IOMMU respectively handle limitations of the DMA engine. I didn't
want to change that without the consensus of simokawa@ though,
who unfortunately didn't reply so far.
MFC after: 1 week
Diffstat (limited to 'lib/libc/regex/regex2.h')
0 files changed, 0 insertions, 0 deletions