[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251219-pwm-rust-v1-0-46873e19679d@gmail.com>
Date: Fri, 19 Dec 2025 19:02:50 +0200
From: Kari Argillander <kari.argillander@...il.com>
To: Michal Wilczynski <m.wilczynski@...sung.com>,
Uwe Kleine-König <ukleinek@...nel.org>,
Miguel Ojeda <ojeda@...nel.org>, Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <lossin@...nel.org>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>
Cc: linux-pwm@...r.kernel.org, rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org, Kari Argillander <kari.argillander@...il.com>
Subject: [PATCH 0/2] rust: pwm: Fix init error handling and tidy style
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@...il.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@...il.com>
Powered by blists - more mailing lists