From: Shirley Ma <mashirle@us.ibm.com>
To: David Miller <davem@davemloft.net>
Cc: mst@redhat.com, netdev@vger.kernel.org, kvm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH V8 2/4 net-next] skbuff: skb supports zero-copy buffers
Date: Thu, 07 Jul 2011 11:32:25 -0700 [thread overview]
Message-ID: <1310063545.10209.30.camel@localhost.localdomain> (raw)
In-Reply-To: <20110707.040149.441417258943576903.davem@davemloft.net>
On Thu, 2011-07-07 at 04:01 -0700, David Miller wrote:
> From: Shirley Ma <mashirle@us.ibm.com>
> Date: Wed, 06 Jul 2011 15:22:12 -0700
>
> > + while (head) {
> > + put_page(head);
> > + head = (struct page *)head->private;
> > + }
>
> Looks like you might be referencing the page after it's
> release here. I think you need something like:
>
> while (head) {
> struct page *next = (struct page
> *)head->private;
> put_page(head);
> head = next;
> }
> --
You are right, will fix it.
Thanks
Shirley
next prev parent reply other threads:[~2011-07-07 18:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-06 22:22 [PATCH V8 2/4 net-next] skbuff: skb supports zero-copy buffers Shirley Ma
2011-07-06 23:01 ` Zan Lynx
2011-07-06 23:24 ` Shirley Ma
2011-07-07 11:01 ` David Miller
2011-07-07 18:32 ` Shirley Ma [this message]
2011-07-07 18:39 ` David Miller
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=1310063545.10209.30.camel@localhost.localdomain \
--to=mashirle@us.ibm.com \
--cc=davem@davemloft.net \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.