Skip to content

Commit 648bcc7

Browse files
tfarinatorvalds
authored andcommitted
mm/memcontrol.c: fix "integer as NULL pointer" sparse warning
mm/memcontrol.c:2548:32: warning: Using plain integer as NULL pointer Signed-off-by: Thiago Farina <tfransosi@gmail.com> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 19adf9c commit 648bcc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/memcontrol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2545,7 +2545,7 @@ static int mem_cgroup_force_empty_list(struct mem_cgroup *mem,
25452545
pc = list_entry(list->prev, struct page_cgroup, lru);
25462546
if (busy == pc) {
25472547
list_move(&pc->lru, list);
2548-
busy = 0;
2548+
busy = NULL;
25492549
spin_unlock_irqrestore(&zone->lru_lock, flags);
25502550
continue;
25512551
}

0 commit comments

Comments
 (0)