[PATCH v2 0/2] module: Fix memory deallocation on error path in move_module()

Petr Pavlu posted 2 patches 3 months, 3 weeks ago
kernel/module/main.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
[PATCH v2 0/2] module: Fix memory deallocation on error path in move_module()
Posted by Petr Pavlu 3 months, 3 weeks ago
The first patch is an actual fix. The second patch is a minor related
cleanup.

Changes since v1 [1]:
- Initialize t to MOD_MEM_NUM_TYPES in move_module(), instead of assigning
  the value later.
- Merge the definitions of the variables i and ret in move_module().

[1] https://lore.kernel.org/linux-modules/20250607161823.409691-1-petr.pavlu@suse.com/

Petr Pavlu (2):
  module: Fix memory deallocation on error path in move_module()
  module: Avoid unnecessary return value initialization in move_module()

 kernel/module/main.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)


base-commit: 52da431bf03b5506203bca27fe14a97895c80faf
-- 
2.49.0
Re: [PATCH v2 0/2] module: Fix memory deallocation on error path in move_module()
Posted by Daniel Gomez 3 months, 1 week ago
From: Daniel Gomez <da.gomez@samsung.com>


On Wed, 18 Jun 2025 14:26:25 +0200, Petr Pavlu wrote:
> The first patch is an actual fix. The second patch is a minor related
> cleanup.
> 
> Changes since v1 [1]:
> - Initialize t to MOD_MEM_NUM_TYPES in move_module(), instead of assigning
>   the value later.
> - Merge the definitions of the variables i and ret in move_module().
> 
> [...]

Applied, thanks!

[1/2] module: Fix memory deallocation on error path in move_module()
      commit: caca01f251ac37807ff10380d5dafb9576cdfef0
[2/2] module: Avoid unnecessary return value initialization in move_module()
      commit: f4e47f3ac79849846189058491ff885491223ab8

Best regards,
-- 
Daniel Gomez <da.gomez@samsung.com>