[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3ca56d3f-5a2b-4321-adbb-4e2c0d72b573@web.de>
Date: Mon, 29 Jan 2024 10:52:48 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Hans de Goede <hdegoede@...hat.com>, Cong Liu <liucong2@...inos.cn>,
Shyam Sundar S K <Shyam-sundar.S-k@....com>,
Mario Limonciello <mario.limonciello@....com>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
platform-driver-x86@...r.kernel.org, kernel-janitors@...r.kernel.org
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [v2] platform/x86/amd/pmf: Fix memory leak in
amd_pmf_get_pb_data()
> If the question is: "Are patches generated by coccinelle welcome?"
> then the answer is "Yes patches generated by coccinelle are very
> much welcome".
How do you think about to fix a questionable memory leak
by using the function “memdup_user” instead?
https://elixir.bootlin.com/linux/v6.8-rc1/source/mm/util.c#L185
Would you like to try a corresponding command out once more on source files
of a software like “Linux next-20240125”?
https://elixir.bootlin.com/linux/v6.8-rc1/source/scripts/coccinelle/api/memdup_user.cocci#L2
make COCCI=scripts/coccinelle/api/memdup_user.cocci M=drivers/platform/x86/amd/pmf/ MODE=patch coccicheck
Regards,
Markus
Powered by blists - more mailing lists