On Thu, Aug 22, 2019 at 8:03 PM Jonathan Lemon <[email protected]> wrote: > > On a recent net-next 932630fa902878f4c8c50d0b1260eeb9de16b0a4, > installing the build on a box which has a Broadcom card with > the 20.1 firmware, the driver refuses to initialize. I tracked > this down to: > > static int bnxt_alloc_stats(struct bnxt *bp) > ... > cpr->hw_stats = dma_alloc_coherent(&pdev->dev, size, > &cpr->hw_stats_map, > GFP_KERNEL); > if (!cpr->hw_stats) > return -ENOMEM; > > Where size == 0, so obviously it returns NULL, and -ENOMEM.
Thanks for the report. I will send a patch to fix this later tonight. > > The same build, when installed on different box with the > 20.6.167.0 firmware, works fine. Details below. > >
