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

*** 814,829 **** RTW_WRITE8(regs, RTW_9346CR, ecr); sr->sr_content = kmem_zalloc(sr->sr_size, KM_SLEEP); - if (sr->sr_content == NULL) { - cmn_err(CE_WARN, "%s: unable to allocate SROM buffer\n", - dvname); - return (ENOMEM); - } - (void) memset(sr->sr_content, 0, sr->sr_size); /* * RTL8180 has a single 8-bit register for controlling the * 93cx6 SROM. There is no "ready" bit. The RTL8180 --- 814,823 ----