commit | 0d2809b500cd831851d1ac734419165949b0f0ab | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Jul 23 11:24:14 2015 +0300 |
committer | Christopher Li <sparse@chrisli.org> | Tue Aug 04 13:23:46 2015 -0400 |
tree | 42b02ecf5a7e9ec24b3b66bc99099c9a22a6b022 | |
parent | a53cea28f0db1c799668476ec7612cf120cddcc0 [diff] |
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 returns ptr = 0xf0f0f0f0 which leads to a segfault. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Christopher Li <sparse@chrisli.org>