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

*** 1391,1404 **** EL(ha, "n=0x%x Error! NetXen card flash not initialized\n", n); return (-1); } buf = kmem_zalloc(n * sizeof (struct crb_addr_pair), KM_SLEEP); - if (buf == NULL) { - EL(ha, "Unable to zalloc memory\n"); - return (-1); - } for (i = 0; i < n; i++) { if (ql_8021_rom_fast_read(ha, 8 * i + 4 * offset, &val) != 0 || ql_8021_rom_fast_read(ha, 8 * i + 4 * offset + 4, &addr) != 0) { --- 1391,1400 ----