On Fri, Oct 08, 2010 at 08:11:04AM -0500, Scot Bontrager wrote: > This allows me to use bluetooth again after the assertwaitok() cleanup. [..] > upipe->u.intr.npoll = npoll; > upipe->u.intr.qhs = > - malloc(npoll * sizeof(uhci_soft_qh_t *), M_USBHC, M_WAITOK); > + malloc(npoll * sizeof(uhci_soft_qh_t *), M_USBHC, M_NOWAIT);
You need to check the return value then and return USBD_NOMEM if it fails, and check callers to make sure they cope. -m. -- The Librarian gave him the kind of look other people would reserve for people who said things like `What's so bad about genocide?' -- (Terry Pratchett, Guards! Guards!)
