All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/1] Rework pkey ioctl functions error paths
@ 2026-07-22 14:29 Harald Freudenberger
  2026-07-22 14:29 ` [PATCH v5 1/1] s390/pkey: Rework " Harald Freudenberger
  0 siblings, 1 reply; 3+ messages in thread
From: Harald Freudenberger @ 2026-07-22 14:29 UTC (permalink / raw)
  To: Heiko Carstens, Vasily Gorbik, Alexander Gordeev; +Cc: freude, linux-s390

Slight rework for all the pkey ioctl functions, especially related to
the error paths with regard to free memory. This patch removes all
this duplicated code and introduces one code block at the end of the
functions which is jumped into via goto out or executed on regular
exit.

Changelog:
v1 - first version
v2 - just a rebase of the v1 patch as the original patch did not apply
     any more.
v3 - Fix paths where a error ptr returned from a helper function may
     be used as input for kfree(). Fixed typo pathes -> paths
v4 - Added yet another slight rework covering the possible use of an
     uninitialized variable in an error path.
v5 - Resend without any code changes, just Finn's reviewed by added.

Harald Freudenberger (1):
  s390/pkey: Rework ioctl functions error paths

 drivers/s390/crypto/pkey_api.c | 288 ++++++++++++++++++---------------
 1 file changed, 157 insertions(+), 131 deletions(-)

--
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-22 14:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-22 14:29 [PATCH v5 0/1] Rework pkey ioctl functions error paths Harald Freudenberger
2026-07-22 14:29 ` [PATCH v5 1/1] s390/pkey: Rework " Harald Freudenberger
2026-07-22 14:37   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.