Messages in this thread | | | Date | Mon, 31 Oct 2022 16:44:49 +0100 | From | Petr Mladek <> | Subject | Re: [PATCH v2 1/4] livepatch/shadow: Separate code to get or use pre-allocated shadow variable |
| |
On Wed 2022-10-26 16:41:19, Marcos Paulo de Souza wrote: > From: Petr Mladek <pmladek@suse.com> > > Separate code that is used in klp_shadow_get_or_alloc() under klp_mutex. > It splits a long spaghetti function into two. Also it unifies the error > handling. The old used a mix of duplicated code, direct returns, > and goto. The new code has only one unlock, free, and return calls. > > It is code refactoring without any functional changes. > > Signed-off-by: Petr Mladek <pmladek@suse.com> > Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Best Regards, Petr
| |