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

*** 331,348 **** /* following case for partial installs that may fail */ if (!rdc_max_sets) rdc_max_sets = 1024; rdc_k_info = kmem_zalloc(sizeof (*rdc_k_info) * rdc_max_sets, KM_SLEEP); - if (!rdc_k_info) - return (ENOMEM); rdc_u_info = kmem_zalloc(sizeof (*rdc_u_info) * rdc_max_sets, KM_SLEEP); - if (!rdc_u_info) { - kmem_free(rdc_k_info, sizeof (*rdc_k_info) * rdc_max_sets); - return (ENOMEM); - } net_exit = ATM_NONE; for (i = 0; i < rdc_max_sets; i++) { krdc = &rdc_k_info[i]; bzero(krdc, sizeof (*krdc)); --- 331,342 ----