]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: KSM: fix data type
authorZhansaya Bagdauletkyzy <zhansayabagdaulet@gmail.com>
Mon, 23 Aug 2021 23:59:38 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:19 +0000 (09:34 +1000)
commit1cf855e958722a25ece64afe453122905b6d5d6a
tree6aa756f6032bc0df42d2a241256b95b0be569fea
parent4081d843008614f068f76810a79fb94504ef0f3d
mm: KSM: fix data type

ksm_stable_node_chains_prune_millisecs is declared as int, but in
stable__node_chains_prune_millisecs_store(), it can store values up to
UINT_MAX.  Change its type to unsigned int.

Link: https://lkml.kernel.org/r/20210806111351.GA71845@asus
Signed-off-by: Zhansaya Bagdauletkyzy <zhansayabagdaulet@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/ksm.c