summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/utils.h
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2010-12-10 21:38:51 +0000
committerken <ken@FreeBSD.org>2010-12-10 21:38:51 +0000
commitff1d787db7946285069059143079c2906cf1725e (patch)
tree16ae5188eba0247928f464c632436c72f8e34e77 /lib/libc/regex/utils.h
parent3e590c80dd031994516eb3aacfd132e53a5de7ba (diff)
downloadFreeBSD-src-ff1d787db7946285069059143079c2906cf1725e.zip
FreeBSD-src-ff1d787db7946285069059143079c2906cf1725e.tar.gz
Fix a few issues related to the XPT_GDEV_ADVINFO CCB.
camcontrol.c: In buildbusdevlist(), don't attempt to get call getdevid() for an unconfigured device, even when the verbose flag is set. The cam_open_btl() call will almost certainly fail. Probe for the buffer size when issuing the XPT_GDEV_ADVINFO CCB. Probing for the buffer size first helps us avoid allocating the maximum buffer size when it really may not be necessary. This also helps avoid errors from cam_periph_mapmem() if we attempt to map more than MAXPHYS. cam_periph.c: In cam_periph_mapmem(), if the XPT_GDEV_ADVINFO CCB shows a bufsiz of 0, we don't have anything to map, so just return. Also, set the maximum mapping size to MAXPHYS instead of DFLTPHYS for XPT_GDEV_ADVINFO CCBs, since they don't actually go down to the hardware. scsi_pass.c: Don't bother mapping the buffer in XPT_GDEV_ADVINFO CCBs if bufsiz is 0.
Diffstat (limited to 'lib/libc/regex/utils.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud