aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorMatthew Wilcox <[email protected]>2021-11-19 16:43:15 -0800
committerLinus Torvalds <[email protected]>2021-11-20 10:35:54 -0800
commit3cd018b4d6f2153e57bb67703891aa4fc7ac5c94 (patch)
tree3b8e342fb55ccc4a6c40680757b2196c660ce827 /net/lapb/lapb_timer.c
parenta90af8f15bdc9449ee2d24e1d73fa3f7e8633f81 (diff)
mm/swap.c:put_pages_list(): reinitialise the page list
While free_unref_page_list() puts pages onto the CPU local LRU list, it does not remove them from the list they were passed in on. That makes the list_head appear to be non-empty, and would lead to various corruption problems if we didn't have an assertion that the list was empty. Reinitialise the list after calling free_unref_page_list() to avoid this problem. Link: https://lkml.kernel.org/r/[email protected] Fixes: 988c69f1bc23 ("mm: optimise put_pages_list()") Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Steve French <[email protected]> Reported-by: Namjae Jeon <[email protected]> Tested-by: Steve French <[email protected]> Tested-by: Namjae Jeon <[email protected]> Cc: Steve French <[email protected]> Cc: Hyeoncheol Lee <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions