ptrlist: reading deleted items in NEXT_PTR_LIST()
commit2e7dd34d11cb2df7972bd3693e149b3002194fc6
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Jul 2015 08:41:44 +0000 (23 11:41 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Jul 2015 08:41:44 +0000 (23 11:41 +0300)
tree2f9ab16fb577369a6b1d04a021a3f3495101c952
parenta2c438fcca8e603ef093f44230155292fc6ea2ce
ptrlist: reading deleted items in NEXT_PTR_LIST()

If you call DELETE_CURRENT_PTR(), then you can sometimes end up with a
__list->nr that is zero.  The FOR_EACH_PTR() macro can handle this but
the NEXT_PTR_LIST() macro will return ptr = 0xf0f0f0f0 which leads to a
segfault.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
ptrlist.h