On 12/21/2014 4:19 AM, Jia-Ju Bai wrote: Please don't send HTML to this mailing list -- your mail may be ignored by the list server.
> The driver lacks the check of nic->cbs_pool after pci_pool_create in > e100_probe. So when this function is failed, the null pointer dereference > occurs when pci_pool_alloc uses nic->cbs_pool in e100_alloc_cbs. Same comment as for the previous patch about wrapping at 80 columns. > This patch fix this problem, and it has been tested in runtime. > Signed-off-by: Jia-Ju Bai<baijiaju1...@163.com> > --- > drivers/net/ethernet/intel/e100.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/net/ethernet/intel/e100.c > b/drivers/net/ethernet/intel/e100.c > index 781065e..ba1813f 100644 > --- a/drivers/net/ethernet/intel/e100.c > +++ b/drivers/net/ethernet/intel/e100.c > @@ -2969,6 +2969,10 @@ static int e100_probe(struct pci_dev *pdev, const > struct pci_device_id *ent) > nic->params.cbs.max * sizeof(struct cb), > sizeof(u32), > 0); > + if (!nic->cbs_pool) { > + err = -ENOMEM; > + goto err_out_pool; > + } Looks like tabs got converted to spaces by your mailer, thus the patch can't be applied. Consider using 'git send-email' instead. [...] WBR, Sergei ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired