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/sun4/io/px/px_mmu.c
          +++ new/usr/src/uts/sun4/io/px/px_mmu.c
↓ open down ↓ 45 lines elided ↑ open up ↑
  46   46          char                    map_name[32];
  47   47          px_dvma_range_prop_t    *dvma_prop;
  48   48          int                     dvma_prop_len;
  49   49          uint32_t                cache_size, tsb_entries;
  50   50  
  51   51          /*
  52   52           * Allocate mmu state structure and link it to the
  53   53           * px state structure.
  54   54           */
  55   55          mmu_p = kmem_zalloc(sizeof (px_mmu_t), KM_SLEEP);
  56      -        if (mmu_p == NULL)
  57      -                return (DDI_FAILURE);
  58   56  
  59   57          px_p->px_mmu_p = mmu_p;
  60   58          mmu_p->mmu_px_p = px_p;
  61   59          mmu_p->mmu_inst = ddi_get_instance(dip);
  62   60  
  63   61          /*
  64   62           * Check for "virtual-dma" property that specifies
  65   63           * the DVMA range.
  66   64           */
  67   65          if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS,
↓ open down ↓ 280 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX