Re: [patch] f2fs: use _safe() version of list_for_each

From: Namjae Jeon
Date: Mon Jan 21 2013 - 07:11:27 EST


2013/1/21, Dan Carpenter <dan.carpenter@xxxxxxxxxx>:
> I sometimes write little user space programs to help me check my
> work. I've attached one.
>
> gcc test.c
> ./a.out
>
> regards,
> dan carpenter
>
Hi Dan.
Thanks for testcase. I understand fully.
list_for_each still use pos after removing pos in loop. So, we need to
use _safe function to get pos->next safely.

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/