Patch "mm/migrate.c: stop using 0 as NULL pointer" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    mm/migrate.c: stop using 0 as NULL pointer

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     mm-migrate.c-stop-using-0-as-null-pointer.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d6819b70b7c23771f73c3c02e6128860b55539bb
Author: Yang Li <yang.lee@xxxxxxxxxxxxxxxxx>
Date:   Wed Nov 16 09:23:45 2022 +0800

    mm/migrate.c: stop using 0 as NULL pointer
    
    [ Upstream commit 4c74b65f478dc9353780a6be17fc82f1b06cea80 ]
    
    mm/migrate.c:1198:24: warning: Using plain integer as NULL pointer
    
    Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3080
    Link: https://lkml.kernel.org/r/20221116012345.84870-1-yang.lee@xxxxxxxxxxxxxxxxx
    Signed-off-by: Yang Li <yang.lee@xxxxxxxxxxxxxxxxx>
    Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx>
    Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>
    Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
    Stable-dep-of: 35e41024c4c2 ("vmscan,migrate: fix page count imbalance on node stats when demoting pages")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/mm/migrate.c b/mm/migrate.c
index 562f819dc6189..81444abf54dba 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -1192,7 +1192,7 @@ static int unmap_and_move(new_page_t get_new_page,
 		return -ENOMEM;
 	dst = page_folio(newpage);
 
-	dst->private = 0;
+	dst->private = NULL;
 	rc = __unmap_and_move(src, dst, force, mode);
 	if (rc == MIGRATEPAGE_SUCCESS)
 		set_page_owner_migrate_reason(&dst->page, reason);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux