Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP

*** 365,376 **** case PPPT_MESSAGE: /* XXX limit buf_size ? */ buf_size = (size_t)iocd.pppt_buf_size; buf = kmem_alloc(buf_size, KM_SLEEP); - if (buf == NULL) - return (ENOMEM); rc = ddi_copyin((void *)(unsigned long)iocd.pppt_buf, buf, buf_size, flag); if (rc) { kmem_free(buf, buf_size); --- 365,374 ----