>> - if ((ai->APList == NULL) && >> - (ai->APList = kmalloc(sizeof(APListRid), GFP_KERNEL)) == NULL) >> + if (!ai->APList) >> + ai->APList = kmalloc(sizeof(APListRid), GFP_KERNEL); >> + if (!ai->APList) >> return -ENOMEM; >> - if ((ai->SSID == NULL) && >> - (ai->SSID = kmalloc(sizeof(SsidRid), GFP_KERNEL)) == NULL) >> + if (!ai->SSID) >> + ai->SSID = kmalloc(sizeof(SsidRid), GFP_KERNEL); >> + if (!ai->SSID) >> return -ENOMEM; > > Would you mind sending another patch which would fix the potential leak?
Sorry, ignore this. _______________________________________________ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel