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/net80211/net80211_crypto_ccmp.c
          +++ new/usr/src/uts/common/io/net80211/net80211_crypto_ccmp.c
↓ open down ↓ 79 lines elided ↑ open up ↑
  80   80          ccmp_demic,
  81   81  };
  82   82  
  83   83  /* ARGSUSED */
  84   84  static void *
  85   85  ccmp_attach(struct ieee80211com *ic, struct ieee80211_key *k)
  86   86  {
  87   87          struct ccmp_ctx *ctx;
  88   88  
  89   89          ctx = kmem_zalloc(sizeof (struct ccmp_ctx), KM_SLEEP);
  90      -        if (ctx == NULL)
  91      -                return (NULL);
  92   90  
  93   91          ctx->cc_ic = ic;
  94   92          return (ctx);
  95   93  }
  96   94  
  97   95  static void
  98   96  ccmp_detach(struct ieee80211_key *k)
  99   97  {
 100   98          struct ccmp_ctx *ctx = k->wk_private;
 101   99  
↓ open down ↓ 380 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX