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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/aac/aac.c
          +++ new/usr/src/uts/common/io/aac/aac.c
↓ open down ↓ 6186 lines elided ↑ open up ↑
6187 6187  }
6188 6188  
6189 6189  static int
6190 6190  aac_create_slots(struct aac_softstate *softs)
6191 6191  {
6192 6192          int i;
6193 6193  
6194 6194          softs->total_slots = softs->aac_max_fibs;
6195 6195          softs->io_slot = kmem_zalloc(sizeof (struct aac_slot) * \
6196 6196              softs->total_slots, KM_SLEEP);
6197      -        if (softs->io_slot == NULL) {
6198      -                AACDB_PRINT(softs, CE_WARN, "Cannot allocate slot");
6199      -                return (AACERR);
6200      -        }
6201 6197          for (i = 0; i < softs->total_slots; i++)
6202 6198                  softs->io_slot[i].index = i;
6203 6199          softs->free_io_slot_head = NULL;
6204 6200          softs->total_fibs = 0;
6205 6201          return (AACOK);
6206 6202  }
6207 6203  
6208 6204  static void
6209 6205  aac_destroy_slots(struct aac_softstate *softs)
6210 6206  {
↓ open down ↓ 2291 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX