From: Dan Carpenter <dan.carpenter@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: net: sxgbe: add basic framework for Samsung 10Gb ethernet driver
Date: Mon, 05 Jan 2015 15:52:42 +0000 [thread overview]
Message-ID: <20150105155242.GA14982@mwanda> (raw)
In-Reply-To: <20141015135354.GA15342@mwanda>
Whatever happened with this? Who is maintaining this now that Silva
isn't around?
regards,
dan carpenter
On Wed, Oct 15, 2014 at 05:15:41PM +0300, Dan Carpenter wrote:
> Silva's email bounces.
>
> On Wed, Oct 15, 2014 at 04:53:54PM +0300, Dan Carpenter wrote:
> > Hello Siva Reddy,
> >
> > The patch 1edb9ca69e8a: "net: sxgbe: add basic framework for Samsung
> > 10Gb ethernet driver" from Mar 25, 2014, leads to the following
> > static checker warning:
> >
> > drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:505 init_rx_ring()
> > warning: passing freed memory 'rx_ring->rx_skbuff'
> >
> > drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c
> > 500 return 0;
> > 501
> > 502 err_init_rx_buffers:
> > 503 while (--desc_index >= 0)
> > 504 free_rx_ring(priv->device, rx_ring, desc_index);
> > ^^^^^^^
> > We free "rx_ring->rx_skbuff" and "rx_ring->rx_skbuff_dma" here so the
> > next two kfree() calls are double frees.
> >
> > 505 kfree(rx_ring->rx_skbuff);
> > 506 rxbuff_err:
> > 507 kfree(rx_ring->rx_skbuff_dma);
> > 508 dmamem_err:
> > 509 dma_free_coherent(priv->device,
> > 510 rx_rsize * sizeof(struct sxgbe_rx_norm_desc),
> > 511 rx_ring->dma_rx, rx_ring->dma_rx_phy);
> > 512 error:
> > 513 return -ENOMEM;
> > 514 }
> >
> > regards,
> > dan carpenter
prev parent reply other threads:[~2015-01-05 15:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-15 13:53 net: sxgbe: add basic framework for Samsung 10Gb ethernet driver Dan Carpenter
2014-10-15 14:15 ` Dan Carpenter
2015-01-05 15:52 ` Dan Carpenter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150105155242.GA14982@mwanda \
--to=dan.carpenter@oracle.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox