Dan Carpenter a1f8fec4da tipc: Fix end of loop tests for list_for_each_entry()
These tests are supposed to check if the loop exited via a break or not.
However the tests are wrong because if we did not exit via a break then
"p" is not a valid pointer.  In that case, it's the equivalent of
"if (*(u32 *)sr == *last_key) {".  That's going to work most of the time,
but there is a potential for those to be equal.

Fixes: 1593123a6a49 ("tipc: add name table dump to new netlink api")
Fixes: 1a1a143daf84 ("tipc: add publication dump to new netlink api")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-02-23 12:35:40 +00:00
..
2022-01-22 08:33:37 +02:00
2021-11-23 20:16:22 -08:00
2022-01-06 12:33:35 +00:00
2021-05-26 07:03:39 +02:00
2022-02-15 14:54:40 +00:00
2022-02-10 15:29:39 +00:00
2021-06-03 15:13:56 -07:00
2021-07-29 15:06:49 +01:00