[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250618122730.51324-1-petr.pavlu@suse.com>
Date: Wed, 18 Jun 2025 14:26:25 +0200
From: Petr Pavlu <petr.pavlu@...e.com>
To: Luis Chamberlain <mcgrof@...nel.org>,
Petr Pavlu <petr.pavlu@...e.com>,
Sami Tolvanen <samitolvanen@...gle.com>,
Daniel Gomez <da.gomez@...sung.com>
Cc: linux-modules@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/2] module: Fix memory deallocation on error path in move_module()
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
Powered by blists - more mailing lists