You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make ptrlist walking against robust against empty blocks
Not all macros or function involved in the ptrlist walking
can handle a ptrlist containing some empty blocks.
Fix this by:
- add the proper check & looping to first & last_ptr_list().
- add a safe version of PTR_ENTRY doing the needed check & looping.
- use this safe version for DO_PREPARE() & DO_RESET()
Suggested-by: Linus Torvalds <[email protected]>
CC: Dan Carpenter <[email protected]>
Signed-off-by: Luc Van Oostenryck <[email protected]>
Tested-by: Luc Van Oostenryck <[email protected]>
Signed-off-by: Christopher Li <[email protected]>
0 commit comments