Re: [PATCH V8 2/4 net-next] skbuff: skb supports zero-copy buffers

From: David Miller
Date: Thu Jul 07 2011 - 07:02:01 EST


From: Shirley Ma <mashirle@xxxxxxxxxx>
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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/