mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] rust: pwm: Fix init error handling and tidy style
@ 2025-12-19 17:02 Kari Argillander
  2025-12-19 17:02 ` [PATCH 1/2] rust: pwm: Fix potential memory leak on init error Kari Argillander
  2025-12-19 17:02 ` [PATCH 2/2] rust: pwm: Simplify to_result call sites and unsafe blocks Kari Argillander
  0 siblings, 2 replies; 3+ messages in thread
From: Kari Argillander @ 2025-12-19 17:02 UTC (permalink / raw)
  To: Michal Wilczynski, Uwe Kleine-König, Miguel Ojeda,
	Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
	Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich
  Cc: linux-pwm, rust-for-linux, linux-kernel, Kari Argillander

This series contains two small updates to the Rust PWM bindings.

The first patch fixes a potential memory leak on an error path during PWM
chip initialization. As currently this is impossible I did not cc stable.

The second patch is just style-only cleanup.

Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
---
Kari Argillander (2):
      rust: pwm: Fix potential memory leak on init error
      rust: pwm: Simplify to_result call sites and unsafe blocks

 rust/kernel/pwm.rs | 54 ++++++++++++++++++++----------------------------------
 1 file changed, 20 insertions(+), 34 deletions(-)
---
base-commit: cc3aa43b44bdb43dfbac0fcb51c56594a11338a8
change-id: 20251219-pwm-rust-7df846d0f183

Best regards,
-- 
Kari Argillander <kari.argillander@gmail.com>


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

end of thread, other threads:[~2025-12-19 17:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-19 17:02 [PATCH 0/2] rust: pwm: Fix init error handling and tidy style Kari Argillander
2025-12-19 17:02 ` [PATCH 1/2] rust: pwm: Fix potential memory leak on init error Kari Argillander
2025-12-19 17:02 ` [PATCH 2/2] rust: pwm: Simplify to_result call sites and unsafe blocks Kari Argillander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®