Re: [PATCH] mm: change tlb_finish_mmu() to be more simple

From: yalin wang
Date: Wed Nov 04 2015 - 03:46:42 EST



> On Nov 4, 2015, at 16:36, Sergey Senozhatsky <sergey.senozhatsky.work@xxxxxxxxx> wrote:
>
> On (11/04/15 15:35), yalin wang wrote:
> [..]
>>
>> - for (batch = tlb->local.next; batch; batch = next) {
>> - next = batch->next;
>> + for (batch = tlb->local.next; batch; batch = batch->next)
>> free_pages((unsigned long)batch, 0);
>
> accessing `batch->next' after calling free_pages() on `batch'?
>
> -ss
oh, my mistake, my code is buggy here .

Thanks--
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/