Re: [PATCH v3 1/1] mm: Fix the uninitialized use in overcommit_policy_handler

From: Kefeng Wang
Date: Thu Sep 23 2021 - 22:41:40 EST



On 2021/9/24 10:23, Andrew Morton wrote:
On Thu, 23 Sep 2021 02:05:24 +0000 Chen Jun <chenjun102@xxxxxxxxxx> wrote:

An unexpected value of /proc/sys/vm/overcommit_memory we will get,
after running the following program.

int main()
{
int fd = open("/proc/sys/vm/overcommit_memory", O_RDWR)

Hi Andrew,

missing  ';' here,

Thanks. I added a cc:stable to this, so the fix will be backported
into earlier kernels.

...  and the Fixes tag miss a ')' in the end ,  please help to add them :)

Reviewed-by: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx>