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

*** 22,33 **** /* * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ - #pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/debug.h> #include <sys/types.h> #include <sys/param.h> #include <sys/time.h> #include <sys/buf.h> --- 22,31 ----
*** 63,75 **** { struct ddi_umem_cookie *umem_cookie; umem_cookie = kmem_zalloc(sizeof (struct ddi_umem_cookie), KM_SLEEP); - if (umem_cookie == NULL) - return (NULL); - umem_cookie->cvaddr = kva; umem_cookie->type = KMEM_NON_PAGEABLE; umem_cookie->size = size; return ((ddi_umem_cookie_t *)umem_cookie); --- 61,70 ----